On Thu, 2019-03-07 at 16:18 -0500, Jeremiah C. Foster wrote:
On Wed, 2019-03-06 at 22:04 +0100, Matthias Klumpp wrote:
Am Mi., 6. März 2019 um 19:56 Uhr schrieb Chris Lamb <
In order to use debspawn, just follow these steps:
- Run `sudo apt install debspawn`
- Then run `debspawn create green`
- Create a new "build-pureos.sh" file with the following contents:
#!/bin/sh set -e set -x export FLAVOR="gnome-live" export DEBIAN_FRONTEND=noninteractive apt-get install -y git ca-certificates apt-get install -y live-build git clone --depth=2 https://source.puri.sm/pureos/infra/make-live.git /srv/build/lb cd /srv/build/lb/ lb config lb build b2sum *.iso *.contents *.zsync *.packages > checksums.b2sum sha256sum *.iso *.contents *.zsync *.packages > checksums.sha256sum mv *.iso /srv/artifacts mv -f *.zsync /srv/artifacts mv -f *.contents /srv/artifacts mv -f *.files /srv/artifacts mv -f *.packages /srv/artifacts mv -f *.b2sum /srv/artifacts mv -f *.sha256sum /srv/artifacts
- Make the .sh file executable and set the FLAVOR you want.
- Tell debspawn to run the build and where to place the build
result: `debspawn run --external-command --artifacts-out=/where/to/put/the/built/image green /path/to/build-pureos.sh`
Doing this `debspawn run --external-command --artifacts-out=build green ./build-pureos.sh` produces
" ┌──────────────────────┐ │ Running Task │ └──────────────────────┘ Failed to parse --bind(-ro)= argument build:/srv/artifacts/: Invalid argument "
Creating that directory doesn't make much of a difference.
Regards,
Jeremiah