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;')'\/'