Mount using --make-rslave to ensure safe unmounts for rbind mounts

core-include-dmsetup
Steve Langasek 7 years ago
parent f16611774f
commit 9c9e8c4e4f

3
debian/changelog vendored

@ -13,6 +13,9 @@ livecd-rootfs (2.408.19) UNRELEASED; urgency=medium
* Also nuke the sleep / udevadm settle calls in the process, which should
never be required and slow down the builds.
[ Balint Reczey ]
* Mount using --make-rslave to ensure safe unmounts for rbind mounts
-- Victor Tapia <victor.tapia@canonical.com> Tue, 19 Sep 2017 10:55:11 +0200
livecd-rootfs (2.408.18) xenial; urgency=medium

@ -82,7 +82,7 @@ mount_image() {
setup_mountpoint() {
local mountpoint="$1"
mount --rbind /dev "$mountpoint/dev"
mount --rbind --make-rslave /dev "$mountpoint/dev"
mount proc-live -t proc "$mountpoint/proc"
mount sysfs-live -t sysfs "$mountpoint/sys"
mount -t tmpfs none "$mountpoint/tmp"

Loading…
Cancel
Save