fixes mostly for bootstrap vol, better docs
[automated-distro-installer] / install-chboot
index 838c0ae02e63565a37963088f8c65490734dc45d..d066101642454420d7664649dbc1f9fc88d61104 100755 (executable)
@@ -24,7 +24,7 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
 # in case there is an issue booting and it is needed.
 # Run this when chboot changes.
 
-cd "${BASH_SOURCE%/*}"
+x=$(readlink -f "$BASH_SOURCE"); cd ${x%/*}
 
 e() { echo "$@"; "$@"; }