parent
6e9d7f35ca
commit
6c9fc6f3ec
@ -0,0 +1,10 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# A few things (launchpad-buildd, sbuild-launchpad-chroot) rely on the
|
||||||
|
# top-level directory being "chroot-autobuild", so we have to do this
|
||||||
|
# ourselves.
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# gzip was chosen for fastest decompression speed: it decompresses buildd
|
||||||
|
# chroots about twice as fast as xz and about five times as fast as bzip2.
|
||||||
|
tar --transform='s,^binary,chroot-autobuild,' --sort=name --numeric-owner \
|
||||||
|
-czf "livecd.$PROJECT.rootfs.tar.gz" binary
|
@ -0,0 +1,16 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# Some build types prefer a LXD image over a traditional chroot tarball.
|
||||||
|
set -e
|
||||||
|
|
||||||
|
. config/bootstrap
|
||||||
|
|
||||||
|
TMPDIR="$(mktemp -d)"
|
||||||
|
config/make-lxd-metadata "${LB_DISTRIBUTION%-*}" "$ARCH" \
|
||||||
|
>"$TMPDIR/metadata.yaml"
|
||||||
|
tar --numeric-owner -cf "livecd.$PROJECT.lxd.tar" -C "$TMPDIR" metadata.yaml
|
||||||
|
rm -rf "$TMPDIR"
|
||||||
|
# When using the combined metadata/rootfs form, the rootfs must be under
|
||||||
|
# rootfs/ rather than under chroot-autobuild/.
|
||||||
|
tar --transform='s,^binary,rootfs,' --sort=name --numeric-owner \
|
||||||
|
-rf "livecd.$PROJECT.lxd.tar" binary
|
||||||
|
gzip -9 "livecd.$PROJECT.lxd.tar"
|
Loading…
Reference in new issue