From d198821c07f1af7348064a853b3ff9d4d9db6d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Wed, 28 Jul 2021 21:54:34 +0200 Subject: [PATCH] Fix sharing of the /dev tree to make sure we can safely umount the chroot when needed. This fixes local non-livefs-builder image builds. --- live-build/functions | 1 + 1 file changed, 1 insertion(+) diff --git a/live-build/functions b/live-build/functions index d1be603b..5f2da181 100644 --- a/live-build/functions +++ b/live-build/functions @@ -132,6 +132,7 @@ setup_mountpoint() { fi mount --rbind /dev "$mountpoint/dev" + mount --make-rslave "$mountpoint/dev" mount proc-live -t proc "$mountpoint/proc" mount sysfs-live -t sysfs "$mountpoint/sys" mount securityfs -t securityfs "$mountpoint/sys/kernel/security"