mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-28 03:21:17 +00:00
Create manifests for buildd tarballs
This commit is contained in:
parent
bf59d6c31c
commit
762124dbd7
@ -4,6 +4,10 @@
|
|||||||
# ourselves.
|
# ourselves.
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
. config/functions
|
||||||
|
|
||||||
|
create_manifest chroot "livecd.$PROJECT.rootfs.tar.gz.manifest"
|
||||||
|
|
||||||
# gzip was chosen for fastest decompression speed: it decompresses buildd
|
# 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.
|
# chroots about twice as fast as xz and about five times as fast as bzip2.
|
||||||
tar --transform='s,^chroot,chroot-autobuild,' --sort=name --numeric-owner \
|
tar --transform='s,^chroot,chroot-autobuild,' --sort=name --numeric-owner \
|
||||||
|
@ -3,12 +3,16 @@
|
|||||||
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.tar.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,^chroot,rootfs,' --sort=name --numeric-owner \
|
tar --transform='s,^chroot,rootfs,' --sort=name --numeric-owner \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user