From: Harald Hoyer Date: Fri, 25 Mar 2011 11:51:24 +0000 (+0100) Subject: dracut: use readlink for drautbasedir if "-l" X-Git-Tag: 009~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bfacf2f21cc9ec0a9aa407ad5daf3ba6136a170;p=thirdparty%2Fdracut.git dracut: use readlink for drautbasedir if "-l" --- diff --git a/dracut b/dracut index 106bc37c8..c7ad360e0 100755 --- a/dracut +++ b/dracut @@ -259,7 +259,7 @@ export PATH [[ $dracutbasedir ]] || dracutbasedir=/usr/share/dracut [[ $allowlocal && -f "$(readlink -f ${0%/*})/dracut-functions" ]] && \ - dracutbasedir="${0%/*}" + dracutbasedir="$(readlink -f ${0%/*})" # if we were not passed a config file, try the default one if [[ ! -f $conffile ]]; then