From 79e8f3b53e8f972994ca6a43b5bfec3e6ae02517 Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Tue, 24 Nov 2020 11:36:13 +0100 Subject: [PATCH] Use the target realpath to do the unmounting --- live-build/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/functions b/live-build/functions index aba59859..74224dbb 100644 --- a/live-build/functions +++ b/live-build/functions @@ -152,7 +152,7 @@ setup_mountpoint() { teardown_mountpoint() { # Reverse the operations from setup_mountpoint - local mountpoint="$1" + local mountpoint=$(realpath "$1") # ensure we have exactly one trailing slash, and escape all slashes for awk mountpoint_match=$(echo "$mountpoint" | sed -e's,/$,,; s,/,\\/,g;')'\/'