From ff0df461c45e1382013759c60373bf5f84e65959 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 18 Jun 2008 13:02:41 +0000 Subject: [PATCH] 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 --- build/scripts/build_haiku_image | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build/scripts/build_haiku_image b/build/scripts/build_haiku_image index 22949a30fc..0056fa72fb 100755 --- a/build/scripts/build_haiku_image +++ b/build/scripts/build_haiku_image @@ -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"