diff --git a/live-build/functions b/live-build/functions index 53f6c1a9..a05db492 100644 --- a/live-build/functions +++ b/live-build/functions @@ -91,7 +91,7 @@ mount_image() { setup_mountpoint() { local mountpoint="$1" - mount --rbind --make-rslave /dev "$mountpoint/dev" + mount --rbind /dev "$mountpoint/dev" mount proc-live -t proc "$mountpoint/proc" mount sysfs-live -t sysfs "$mountpoint/sys" mount -t tmpfs none "$mountpoint/tmp" @@ -112,6 +112,7 @@ teardown_mountpoint() { # sort -r ensures that deeper mountpoints are unmounted first for submount in $(awk "$mountpoint/boot/efi/bloat_file" 2> /dev/null || true rm "$mountpoint/boot/efi/bloat_file" + mount --make-private "$mountpoint/boot/efi" umount --detach-loop "$mountpoint/boot/efi" fi