|
|
@ -3,14 +3,18 @@
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
. config/bootstrap
|
|
|
|
. config/bootstrap
|
|
|
|
|
|
|
|
. config/functions
|
|
|
|
|
|
|
|
|
|
|
|
TMPDIR="$(mktemp -d)"
|
|
|
|
TMPDIR="$(mktemp -d)"
|
|
|
|
config/make-lxd-metadata "${LB_DISTRIBUTION%-*}" "$ARCH" \
|
|
|
|
config/make-lxd-metadata "${LB_DISTRIBUTION%-*}" "$ARCH" \
|
|
|
|
>"$TMPDIR/metadata.yaml"
|
|
|
|
>"$TMPDIR/metadata.yaml"
|
|
|
|
tar --numeric-owner -cf "livecd.$PROJECT.lxd.tar" -C "$TMPDIR" metadata.yaml
|
|
|
|
tar --numeric-owner -cf "livecd.$PROJECT.lxd.tar" -C "$TMPDIR" metadata.yaml
|
|
|
|
rm -rf "$TMPDIR"
|
|
|
|
rm -rf "$TMPDIR"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create_manifest chroot "livecd.$PROJECT.lxd.manifest"
|
|
|
|
|
|
|
|
|
|
|
|
# When using the combined metadata/rootfs form, the rootfs must be under
|
|
|
|
# When using the combined metadata/rootfs form, the rootfs must be under
|
|
|
|
# rootfs/ rather than under chroot-autobuild/.
|
|
|
|
# rootfs/ rather than under chroot-autobuild/.
|
|
|
|
tar --transform='s,^binary,rootfs,' --sort=name --numeric-owner \
|
|
|
|
tar --transform='s,^chroot,rootfs,' --sort=name --numeric-owner \
|
|
|
|
-rf "livecd.$PROJECT.lxd.tar" binary
|
|
|
|
-rf "livecd.$PROJECT.lxd.tar" chroot
|
|
|
|
gzip -9 "livecd.$PROJECT.lxd.tar"
|
|
|
|
gzip -9 "livecd.$PROJECT.lxd.tar"
|
|
|
|