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

This commit is contained in:
Balint Reczey 2017-09-25 11:42:28 -04:00
parent 6d5ab03a14
commit 45201111a6

View File

@ -79,7 +79,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"