mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 03:11:12 +00:00
Use the target realpath to do the unmounting
This commit is contained in:
parent
40da2925c4
commit
79e8f3b53e
@ -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;')'\/'
|
||||
|
Loading…
x
Reference in New Issue
Block a user