mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-31 12:41:40 +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() {
|
teardown_mountpoint() {
|
||||||
# Reverse the operations from setup_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
|
# ensure we have exactly one trailing slash, and escape all slashes for awk
|
||||||
mountpoint_match=$(echo "$mountpoint" | sed -e's,/$,,; s,/,\\/,g;')'\/'
|
mountpoint_match=$(echo "$mountpoint" | sed -e's,/$,,; s,/,\\/,g;')'\/'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user