From fb0d16ea8ad6eec890acff0243a3863ec20ec862 Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Tue, 24 Nov 2020 11:38:10 +0100 Subject: [PATCH] Correctly set the environment needed by snapd in layered The change is similar to commit #1ca11c97 but for the canary image. --- live-build/lb_chroot_layered | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/live-build/lb_chroot_layered b/live-build/lb_chroot_layered index 44429472..261d447b 100755 --- a/live-build/lb_chroot_layered +++ b/live-build/lb_chroot_layered @@ -208,10 +208,22 @@ create_chroot_pass () { lb chroot_install-packages ${pass} ${*} lb_chroot_remove_packages ${pass} ${*} + lb chroot_sysfs remove ${*} + lb chroot_proc remove ${*} + lb chroot_devpts remove ${*} + + setup_mountpoint chroot + # Snap management lb_chroot_snap_lists ${pass} ${*} lb_chroot_install_snaps ${pass} ${*} + teardown_mountpoint chroot + + lb chroot_devpts install ${*} + lb chroot_proc install ${*} + lb chroot_sysfs install ${*} + configure_network_manager # Mark kernel headers as autoremovable