From 70f2c6deb73e40d730e050775563d764909258ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Fri, 10 Aug 2018 16:02:05 +0200 Subject: [PATCH] Initial Commit --- .gitignore | 3 +++ Makefile | 19 +++++++++++++++++++ README.md | 3 +++ boards/FOOT.json | 5 +++++ boards/HEAD.json | 4 ++++ boards/amd64.json | 3 +++ boards/rpi2.json | 3 +++ boards/rpi3.json | 4 ++++ 8 files changed, 44 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md create mode 100644 boards/FOOT.json create mode 100644 boards/HEAD.json create mode 100644 boards/amd64.json create mode 100644 boards/rpi2.json create mode 100644 boards/rpi3.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba8d7b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.img +*.model +*.manifest diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f51617d --- /dev/null +++ b/Makefile @@ -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 + diff --git a/README.md b/README.md new file mode 100644 index 0000000..3721593 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ppl-os + +Files required to build the ubuntu core based pplOS diff --git a/boards/FOOT.json b/boards/FOOT.json new file mode 100644 index 0000000..40da745 --- /dev/null +++ b/boards/FOOT.json @@ -0,0 +1,5 @@ + "required-snaps": ["hello", "hello-world", "nextcloud", "lxd"], + "authority-id": "7xN2sMCILuFk10e6DxrTrQWprdmV0Vi9", + "brand-id": "7xN2sMCILuFk10e6DxrTrQWprdmV0Vi9", + "timestamp": "TIMESTAMP" +} diff --git a/boards/HEAD.json b/boards/HEAD.json new file mode 100644 index 0000000..c4117b2 --- /dev/null +++ b/boards/HEAD.json @@ -0,0 +1,4 @@ +{ + "type": "model", + "series": "16", + "model": "hub", diff --git a/boards/amd64.json b/boards/amd64.json new file mode 100644 index 0000000..12b3b8c --- /dev/null +++ b/boards/amd64.json @@ -0,0 +1,3 @@ + "architecture": "amd64", + "gadget": "joule", + "kernel": "joule-linux", diff --git a/boards/rpi2.json b/boards/rpi2.json new file mode 100644 index 0000000..e99bc6b --- /dev/null +++ b/boards/rpi2.json @@ -0,0 +1,3 @@ + "architecture": "armhf", + "gadget": "pi2", + "kernel": "pi2-kernel", diff --git a/boards/rpi3.json b/boards/rpi3.json new file mode 100644 index 0000000..d7384de --- /dev/null +++ b/boards/rpi3.json @@ -0,0 +1,4 @@ + "architecture": "armhf", + "gadget": "pi2", + "kernel": "pi3-kernel", +