aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-09 21:28:23 -0500
committerDave Reisner <d@falconindy.com>2010-01-09 21:28:23 -0500
commit7bb9b3debb65b8fe1ebf89c42597f4a18cdffca6 (patch)
tree114744c0fa4d93493880508ddc54264b1d2c7dba
parentb080060002c72d2c26b59ca7acbad6c7ddcb69aa (diff)
downloadsquashfu-7bb9b3debb65b8fe1ebf89c42597f4a18cdffca6.tar.gz
When receiving a user specified mount point, use readlink to track absolute path, rather than relative
-rwxr-xr-xsquashfu4
1 files 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";
}