mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-09 09:51:30 +00:00
Mount using --make-rslave to ensure safe unmounts for rbind mounts
This commit is contained in:
parent
f16611774f
commit
9c9e8c4e4f
3
debian/changelog
vendored
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
|
* Also nuke the sleep / udevadm settle calls in the process, which should
|
||||||
never be required and slow down the builds.
|
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
|
-- Victor Tapia <victor.tapia@canonical.com> Tue, 19 Sep 2017 10:55:11 +0200
|
||||||
|
|
||||||
livecd-rootfs (2.408.18) xenial; urgency=medium
|
livecd-rootfs (2.408.18) xenial; urgency=medium
|
||||||
|
@ -82,7 +82,7 @@ mount_image() {
|
|||||||
setup_mountpoint() {
|
setup_mountpoint() {
|
||||||
local mountpoint="$1"
|
local mountpoint="$1"
|
||||||
|
|
||||||
mount --rbind /dev "$mountpoint/dev"
|
mount --rbind --make-rslave /dev "$mountpoint/dev"
|
||||||
mount proc-live -t proc "$mountpoint/proc"
|
mount proc-live -t proc "$mountpoint/proc"
|
||||||
mount sysfs-live -t sysfs "$mountpoint/sys"
|
mount sysfs-live -t sysfs "$mountpoint/sys"
|
||||||
mount -t tmpfs none "$mountpoint/tmp"
|
mount -t tmpfs none "$mountpoint/tmp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user