From d65af891f384aa1978675a64738a11aa97b87393 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 livecd-rootfs creates non-private mounts. When building locally using the auto/build script unmounting fails. To unmount dev/pts it is insufficient to make the mount private. Its parents must be private too. Change teardown_mountpoint() accordingly. Signed-off-by: Heinrich Schuchardt --- live-build/functions | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/live-build/functions b/live-build/functions index 8a6777f2..d9ae727b 100644 --- a/live-build/functions +++ b/live-build/functions @@ -158,10 +158,17 @@ teardown_mountpoint() { # ensure we have exactly one trailing slash, and escape all slashes for awk mountpoint_match=$(echo "$mountpoint" | sed -e's,/$,,; s,/,\\/,g;')'\/' - # sort -r ensures that deeper mountpoints are unmounted first + + # Make all submounts private for submount in $(awk