From 9c9e8c4e4f94143c5a35d71f7d6efc798f11b4b4 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Tue, 26 Sep 2017 01:10:15 -0400 Subject: [PATCH] Mount using --make-rslave to ensure safe unmounts for rbind mounts --- debian/changelog | 3 +++ live-build/ubuntu-cpc/functions | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index f6282592..266c6d42 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 19 Sep 2017 10:55:11 +0200 livecd-rootfs (2.408.18) xenial; urgency=medium diff --git a/live-build/ubuntu-cpc/functions b/live-build/ubuntu-cpc/functions index 01cbfc92..1cde487a 100644 --- a/live-build/ubuntu-cpc/functions +++ b/live-build/ubuntu-cpc/functions @@ -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"