Blame 0004-dracut-honor-binaries-in-sbin-first.patch

Harald Hoyer d45cf7
From 7b2d3d995c97652a13880b279bfc602e47bcda9c Mon Sep 17 00:00:00 2001
Harald Hoyer d45cf7
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer d45cf7
Date: Thu, 9 Feb 2012 13:58:13 +0100
Harald Hoyer d45cf7
Subject: [PATCH] dracut: honor binaries in sbin first
Harald Hoyer d45cf7
Harald Hoyer d45cf7
---
Harald Hoyer d45cf7
 dracut |    6 +++---
Harald Hoyer d45cf7
 1 files changed, 3 insertions(+), 3 deletions(-)
Harald Hoyer d45cf7
Harald Hoyer d45cf7
diff --git a/dracut b/dracut
Harald Hoyer d45cf7
index 545f9db..fb46d70 100755
Harald Hoyer d45cf7
--- a/dracut
Harald Hoyer d45cf7
+++ b/dracut
Harald Hoyer d45cf7
@@ -279,14 +279,14 @@ if ! [[ $kernel ]]; then
Harald Hoyer d45cf7
 fi
Harald Hoyer d45cf7
 [[ $outfile ]] || outfile="/boot/initramfs-$kernel.img"
Harald Hoyer d45cf7
 
Harald Hoyer d45cf7
-for i in /usr/bin /bin /usr/sbin /sbin; do
Harald Hoyer d45cf7
+for i in /usr/sbin /sbin /usr/bin /bin; do
Harald Hoyer d45cf7
     rl=$i
Harald Hoyer d45cf7
     if [ -L "$i" ]; then
Harald Hoyer d45cf7
         rl=$(readlink -f $i)
Harald Hoyer d45cf7
     fi
Harald Hoyer d45cf7
-    NPATH="$NPATH:$rl"
Harald Hoyer d45cf7
+    NPATH+=":$rl"
Harald Hoyer d45cf7
 done
Harald Hoyer d45cf7
-export PATH="$NPATH"
Harald Hoyer d45cf7
+export PATH="${NPATH#:}"
Harald Hoyer d45cf7
 unset NPATH
Harald Hoyer d45cf7
 unset LD_LIBRARY_PATH
Harald Hoyer d45cf7
 unset GREP_OPTIONS