Initial Commit

This commit is contained in:
Maciej Krüger 2018-08-10 16:02:05 +02:00
commit 70f2c6deb7
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F
8 changed files with 44 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.img
*.model
*.manifest

19
Makefile Normal file
View File

@ -0,0 +1,19 @@
CHANNEL=stable
clean:
rm -rf *.img *.model *.manifest
%.model: boards/%.json # sign a model file
cat boards/HEAD.json $< boards/FOOT.json | sed "s|TIMESTAMP|$(shell date -Iseconds --utc)|g" | snap sign -k default > $@
%.img: %.model # build an image
sudo ubuntu-image snap -o $@ -c $(CHANNEL) $<
# VM stuff
vm.img: amd64.img # make a copy of the newest clean image
cp amd64.img vm.img
start: vm.img # launch the image with kvm
kvm -smp 2 -m 1500 -netdev user,id=mynet0,hostfwd=tcp::8022-:22,hostfwd=tcp::8090-:80 -device virtio-net-pci,netdev=mynet0 -drive file=vm.img,format=raw
ssh: # ssh into it (don't check the key because that one changes after every rebuild)
ssh mkg20001@localhost -p 8022 -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# ppl-os
Files required to build the ubuntu core based pplOS

5
boards/FOOT.json Normal file
View File

@ -0,0 +1,5 @@
"required-snaps": ["hello", "hello-world", "nextcloud", "lxd"],
"authority-id": "7xN2sMCILuFk10e6DxrTrQWprdmV0Vi9",
"brand-id": "7xN2sMCILuFk10e6DxrTrQWprdmV0Vi9",
"timestamp": "TIMESTAMP"
}

4
boards/HEAD.json Normal file
View File

@ -0,0 +1,4 @@
{
"type": "model",
"series": "16",
"model": "hub",

3
boards/amd64.json Normal file
View File

@ -0,0 +1,3 @@
"architecture": "amd64",
"gadget": "joule",
"kernel": "joule-linux",

3
boards/rpi2.json Normal file
View File

@ -0,0 +1,3 @@
"architecture": "armhf",
"gadget": "pi2",
"kernel": "pi2-kernel",

4
boards/rpi3.json Normal file
View File

@ -0,0 +1,4 @@
"architecture": "armhf",
"gadget": "pi2",
"kernel": "pi3-kernel",