mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-01-23 14:32:21 +08:00
Use realpath to remove useless slashes from path
This commit is contained in:
parent
0c7e499af6
commit
5f1c83a37a
@ -41,8 +41,9 @@ createFstab()
|
||||
fi
|
||||
|
||||
# If a mount point is given then we generate fstab based on that mount point.
|
||||
DIR_ROOT="$1 "
|
||||
DIR_BOOT="$1/boot "
|
||||
|
||||
DIR_ROOT="$(realpath -sm "$1") "
|
||||
DIR_BOOT="$(realpath -sm "$1")/boot "
|
||||
else
|
||||
# No mount point is given. We generate fstab for the current running system.
|
||||
DIR_ROOT="/ "
|
||||
|
Loading…
Reference in New Issue
Block a user