If it contains symlinks, resolve the image path. This avoids problems
with certain Linux setups. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26006 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -30,6 +30,15 @@ if [ $# -gt 0 ]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
# If the haiku image path is a symlink resolve it now (makebootable needs the
|
||||
# path of the actual device path under Linux).
|
||||
if which readlink &> /dev/null; then
|
||||
normalizedImagePath=$(readlink -e "$imagePath")
|
||||
if [ $normalizedImagePath ]; then
|
||||
imagePath="$normalizedImagePath"
|
||||
fi
|
||||
fi
|
||||
|
||||
# this adds the build library dir to LD_LIBRARY_PATH
|
||||
eval "$addBuildCompatibilityLibDir"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user