From 1b6b3db5ed87a6e828e89a2e1e083b2d44a6ab47 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 1 Dec 2021 13:52:42 +0100 Subject: [PATCH] functions: fix unmounting for local builds When building locally using the auto/build script unmounting fails. Avoid mounting via bind. Mount mountpoint/dev as devtmpfs file system and mountpoint/dev/pts as devpts file system. Signed-off-by: Heinrich Schuchardt --- live-build/functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/live-build/functions b/live-build/functions index 210a783c..362af9bc 100644 --- a/live-build/functions +++ b/live-build/functions @@ -131,7 +131,8 @@ setup_mountpoint() { chown root:kmem /dev/mem fi - mount --rbind /dev "$mountpoint/dev" + mount dev-live -t devtmpfs "$mountpoint/dev" + mount devpts-live -t devpts -o nodev,nosuid "$mountpoint/dev/pts" mount proc-live -t proc "$mountpoint/proc" mount sysfs-live -t sysfs "$mountpoint/sys" mount securityfs -t securityfs "$mountpoint/sys/kernel/security"