diff --git a/live-build/lb_chroot_layered b/live-build/lb_chroot_layered index 22d50bdb..264eacd2 100755 --- a/live-build/lb_chroot_layered +++ b/live-build/lb_chroot_layered @@ -239,7 +239,9 @@ create_chroot_pass () { # layered mode is to create an initrd on each layer with a significant # impact on image size (+30MB per layer). This is an issue even with # update-initramfs disabled. - lb chroot_hacks ${*} + if $(is_live_layer $pass); then + lb chroot_hacks ${*} + fi lb chroot_interactive ${*}