Enable building buildd artifacts with an ext4 image target.

u-i-disk-info
David Krauser 5 years ago
parent a18a7e5294
commit 0eb16a4b14

@ -9,4 +9,4 @@ set -e
# /var/lib/apt/lists/ has suitable cached Packages files; this speeds up # /var/lib/apt/lists/ has suitable cached Packages files; this speeds up
# builds on buildds. # builds on buildds.
sed -i "s,${LB_PARENT_MIRROR_BINARY},${LB_MIRROR_BINARY},g" \ sed -i "s,${LB_PARENT_MIRROR_BINARY},${LB_MIRROR_BINARY},g" \
binary/etc/apt/sources.list chroot/etc/apt/sources.list

@ -6,8 +6,8 @@ set -e
# installed, but that doesn't work because live-build has already installed # installed, but that doesn't work because live-build has already installed
# a dummy one at that point. The simplest approach is to repair the # a dummy one at that point. The simplest approach is to repair the
# situation by putting it in place here. # situation by putting it in place here.
if [ -L binary/etc/alternatives/policy-rc.d ] && \ if [ -L chroot/etc/alternatives/policy-rc.d ] && \
[ ! -e binary/usr/sbin/policy-rc.d ] && \ [ ! -e chroot/usr/sbin/policy-rc.d ] && \
[ ! -L binary/usr/sbin/policy-rc.d ]; then [ ! -L chroot/usr/sbin/policy-rc.d ]; then
ln -s /etc/alternatives/policy-rc.d binary/usr/sbin/policy-rc.d ln -s /etc/alternatives/policy-rc.d chroot/usr/sbin/policy-rc.d
fi fi

@ -6,5 +6,5 @@ set -e
# 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,^binary,chroot-autobuild,' --sort=name --numeric-owner \ tar --transform='s,^chroot,chroot-autobuild,' --sort=name --numeric-owner \
-czf "livecd.$PROJECT.rootfs.tar.gz" binary -czf "livecd.$PROJECT.rootfs.tar.gz" chroot

@ -11,6 +11,6 @@ tar --numeric-owner -cf "livecd.$PROJECT.lxd.tar" -C "$TMPDIR" metadata.yaml
rm -rf "$TMPDIR" rm -rf "$TMPDIR"
# 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"

Loading…
Cancel
Save