dracut: determine path to dracut-functions
authorHarald Hoyer <harald@redhat.com>
Mon, 14 Sep 2009 17:35:18 +0000 (19:35 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 14 Sep 2009 17:35:18 +0000 (19:35 +0200)
dracut

diff --git a/dracut b/dracut
index b19df1e..d9fd841 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -123,7 +123,7 @@ fw_dir=${fw_dir//:/ }
 
 [[ $hostonly = yes ]] && hostonly="-h"
 
-[[ $allowlocal && -f "$(dirname $0)/dracut-functions" ]] && dsrc="$(dirname $0)" || dsrc=$dracutbasedir
+[[ $allowlocal && -f "$(readlink -f $(dirname $0))/dracut-functions" ]] && dsrc="$(dirname $0)" || dsrc=$dracutbasedir
 
 if [[ -f $dsrc/dracut-functions ]]; then
    . $dsrc/dracut-functions