]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: change the PATH we search for our binaries
authorHarald Hoyer <harald@redhat.com>
Fri, 5 Sep 2014 14:42:59 +0000 (16:42 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 5 Sep 2014 14:42:59 +0000 (16:42 +0200)
/sbin /bin versions should be used over /usr/sbin and /usr/bin versions,
because non-usr is meant for early boot.

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755271

dracut.sh

index 9032bae959e2ec49224627ea804db962dfed0617..35c69efe017bc7c184eb708ad3451ebc301ebaea 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -674,7 +674,7 @@ for f in $(dropindirs_sort ".conf" "$confdir" "$dracutbasedir/dracut.conf.d"); d
     [[ -e $f ]] && . "$f"
 done
 
-DRACUT_PATH=${DRACUT_PATH:-/usr/sbin /sbin /usr/bin /bin}
+DRACUT_PATH=${DRACUT_PATH:-/sbin /bin /usr/sbin /usr/bin}
 
 for i in $DRACUT_PATH; do
     rl=$i