|
|
@ -191,13 +191,7 @@ create_chroot_pass () {
|
|
|
|
lb chroot_resolv install ${*}
|
|
|
|
lb chroot_resolv install ${*}
|
|
|
|
lb chroot_hostname install ${*}
|
|
|
|
lb chroot_hostname install ${*}
|
|
|
|
lb chroot_apt install ${*}
|
|
|
|
lb chroot_apt install ${*}
|
|
|
|
# Note: this triggers an upgrade + dist-ugprade; which may impact sublayers with more
|
|
|
|
lb chroot_archives chroot install ${*}
|
|
|
|
# diff content than desired. So only running this on root pass.
|
|
|
|
|
|
|
|
# Only configure universe on root passes
|
|
|
|
|
|
|
|
if $(is_root_layer $pass); then
|
|
|
|
|
|
|
|
lb chroot_archives chroot install ${*}
|
|
|
|
|
|
|
|
configure_universe
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Customizing chroot
|
|
|
|
# Customizing chroot
|
|
|
|
lb chroot_linux-image ${*}
|
|
|
|
lb chroot_linux-image ${*}
|
|
|
@ -247,14 +241,7 @@ create_chroot_pass () {
|
|
|
|
|
|
|
|
|
|
|
|
lb chroot_hooks ${*}
|
|
|
|
lb chroot_hooks ${*}
|
|
|
|
|
|
|
|
|
|
|
|
# Run chroot_hacks only on root layers.
|
|
|
|
lb chroot_hacks ${*}
|
|
|
|
# chroot_hacks changes the mode of boot/initrd*. The side effect in
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
if $(is_live_layer $pass); then
|
|
|
|
|
|
|
|
lb chroot_hacks ${*}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lb chroot_interactive ${*}
|
|
|
|
lb chroot_interactive ${*}
|
|
|
|
|
|
|
|
|
|
|
@ -264,10 +251,8 @@ create_chroot_pass () {
|
|
|
|
|
|
|
|
|
|
|
|
Chroot chroot "dpkg-query -W" > chroot.packages.${pass}
|
|
|
|
Chroot chroot "dpkg-query -W" > chroot.packages.${pass}
|
|
|
|
|
|
|
|
|
|
|
|
# Deconfiguring chroot
|
|
|
|
lb chroot_archives chroot remove ${*}
|
|
|
|
if $(is_root_layer $pass); then
|
|
|
|
configure_universe
|
|
|
|
lb chroot_archives chroot remove ${*}
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
lb chroot_apt remove ${*}
|
|
|
|
lb chroot_apt remove ${*}
|
|
|
|
lb chroot_hostname remove ${*}
|
|
|
|
lb chroot_hostname remove ${*}
|
|
|
|
lb chroot_resolv remove ${*}
|
|
|
|
lb chroot_resolv remove ${*}
|
|
|
|