Ensure chroot_linux-image is only exectued on live layers

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
ubuntu/mantic
Dimitri John Ledkov 1 year ago
parent d5e9651fe0
commit deb31732db

@ -167,7 +167,6 @@ create_chroot_pass () {
fi fi
# Customizing chroot # Customizing chroot
lb chroot_linux-image ${*}
lb chroot_preseed ${*} lb chroot_preseed ${*}
lb chroot_early_hooks ${*} lb chroot_early_hooks ${*}
@ -205,6 +204,7 @@ create_chroot_pass () {
# Add live packages to live layers # Add live packages to live layers
for livepass in $LIVE_PASSES; do for livepass in $LIVE_PASSES; do
[ "$livepass" != "$pass" ] && continue [ "$livepass" != "$pass" ] && continue
lb chroot_linux-image ${*}
lb chroot_live-packages ${*} lb chroot_live-packages ${*}
break break
done done

Loading…
Cancel
Save