From 45201111a6b1f2b64d740a5b24073128b4d7a134 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Mon, 25 Sep 2017 11:42:28 -0400 Subject: [PATCH] Mount using --make-rslave to ensure safe unmounts for rbind mounts --- live-build/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/functions b/live-build/functions index 4c3049ec..2106df21 100644 --- a/live-build/functions +++ b/live-build/functions @@ -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"