142830f
From 147ce7ccbb923a96d406be22d8ed325df965569d Mon Sep 17 00:00:00 2001
142830f
From: Harald Hoyer <harald@redhat.com>
142830f
Date: Mon, 26 Mar 2012 09:29:06 +0200
142830f
Subject: [PATCH] dracut, dracut-functions: fix PATH
142830f
142830f
---
142830f
 dracut           |    2 +-
142830f
 dracut-functions |    2 +-
142830f
 2 files changed, 2 insertions(+), 2 deletions(-)
142830f
142830f
diff --git a/dracut b/dracut
142830f
index 02cf07d..7ea9419 100755
142830f
--- a/dracut
142830f
+++ b/dracut
142830f
@@ -252,7 +252,7 @@ if ! [[ $kernel ]]; then
142830f
 fi
142830f
 [[ $outfile ]] || outfile="/boot/initramfs-$kernel.img"
142830f
 
142830f
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
142830f
+PATH=/usr/sbin:/sbin:/usr/bin:/bin
142830f
 export PATH
142830f
 
142830f
 [[ $debug ]] && { 
142830f
diff --git a/dracut-functions b/dracut-functions
142830f
index af82f8a..571a4f3 100755
142830f
--- a/dracut-functions
142830f
+++ b/dracut-functions
142830f
@@ -314,7 +314,7 @@ inst_library() {
142830f
 # find a binary.  If we were not passed the full path directly,
142830f
 # search in the usual places to find the binary.
142830f
 find_binary() {
142830f
-    local binpath="/bin /sbin /usr/bin /usr/sbin" p
142830f
+    local binpath="/usr/sbin /sbin /usr/bin /bin" p
142830f
     if [[ -z ${1##/*} ]]; then
142830f
         if [[ -x $1 ]] || ldd $1 &>/dev/null; then
142830f
             echo $1
142830f
-- 
142830f
1.7.9.3
142830f