|
|
|
@ -86,6 +86,12 @@ build_layered_squashfs () {
|
|
|
|
|
lb_binary_includes $pass ${*}
|
|
|
|
|
lb binary_hooks ${*}
|
|
|
|
|
|
|
|
|
|
# Copy initrd and vmlinuz outside of chroot and remove them from the layer squashfs
|
|
|
|
|
if $(is_live_layer "$pass"); then
|
|
|
|
|
lb binary_linux-image ${*}
|
|
|
|
|
rm -f chroot/boot/initrd.img-* chroot/boot/vmlinu{x,z}-*
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Full manifest until that PASS
|
|
|
|
|
squashfs_f_manifest="${base}.manifest"
|
|
|
|
|
create_manifest "chroot" "${squashfs_f_manifest}.full"
|
|
|
|
@ -100,11 +106,7 @@ build_layered_squashfs () {
|
|
|
|
|
# Prepare initrd + kernel
|
|
|
|
|
# Main manifest and size files
|
|
|
|
|
prefix="livecd.$PROJECT${SUBARCH:+-$SUBARCH}"
|
|
|
|
|
if [ ! -e "${prefix}.manifest" ]; then
|
|
|
|
|
for livepass in $LIVE_PASSES; do
|
|
|
|
|
[ "$livepass" != "$pass" ] && continue
|
|
|
|
|
lb binary_linux-image ${*}
|
|
|
|
|
|
|
|
|
|
if [ ! -e "${prefix}.manifest" ] && $(is_live_layer "$pass"); then
|
|
|
|
|
totalsize=$(cat ${squashfs_f_size})
|
|
|
|
|
curpass="$pass"
|
|
|
|
|
while :; do
|
|
|
|
@ -117,8 +119,6 @@ build_layered_squashfs () {
|
|
|
|
|
echo ${totalsize} > "${prefix}.size"
|
|
|
|
|
|
|
|
|
|
cp "${squashfs_f_manifest}.full" "${prefix}.manifest"
|
|
|
|
|
break
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
(cd "overlay.${pass}/" &&
|
|
|
|
|