From 7bb9b3debb65b8fe1ebf89c42597f4a18cdffca6 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 9 Jan 2010 21:28:23 -0500 Subject: When receiving a user specified mount point, use readlink to track absolute path, rather than relative --- squashfu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/squashfu b/squashfu index 05be3fe..15b10c6 100755 --- a/squashfu +++ b/squashfu @@ -117,8 +117,8 @@ mount_seed () { mount_union_ro () { # Account for second arg from rollback function to mount at a different mountpoint [[ -n "$2" ]] && { - MOUNT_POINT="$2"; - echo "$2" >> /tmp/squashfu.custom + MOUNT_POINT="$(readlink -f $2)"; + echo "$MOUNT_POINT" >> /tmp/squashfu.custom } || { MOUNT_POINT="${BKUP_ROOT}/rw"; } -- cgit v1.2.3