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:
Ingo Weinhold
2008-06-18 13:02:41 +00:00
parent 13315c5755
commit ff0df461c4
+9
View File
@@ -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"