Blame 0001-dracut-setup-clean-PATH-w-o-existing-one.patch

Harald Hoyer b9a7ee
From 68910ba4a510e2d10e1c16adb348a8916a74b281 Mon Sep 17 00:00:00 2001
Harald Hoyer b9a7ee
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer b9a7ee
Date: Wed, 8 Feb 2012 17:02:17 +0100
Harald Hoyer b9a7ee
Subject: [PATCH] dracut: setup clean PATH w/o existing one
Harald Hoyer b9a7ee
Harald Hoyer b9a7ee
---
Harald Hoyer b9a7ee
 dracut |    5 +++--
Harald Hoyer b9a7ee
 1 files changed, 3 insertions(+), 2 deletions(-)
Harald Hoyer b9a7ee
Harald Hoyer b9a7ee
diff --git a/dracut b/dracut
Harald Hoyer b9a7ee
index 86fcaf3..545f9db 100755
Harald Hoyer b9a7ee
--- a/dracut
Harald Hoyer b9a7ee
+++ b/dracut
Harald Hoyer b9a7ee
@@ -284,9 +284,10 @@ for i in /usr/bin /bin /usr/sbin /sbin; do
Harald Hoyer b9a7ee
     if [ -L "$i" ]; then
Harald Hoyer b9a7ee
         rl=$(readlink -f $i)
Harald Hoyer b9a7ee
     fi
Harald Hoyer b9a7ee
-    PATH="$PATH:$rl"
Harald Hoyer b9a7ee
+    NPATH="$NPATH:$rl"
Harald Hoyer b9a7ee
 done
Harald Hoyer b9a7ee
-export PATH
Harald Hoyer b9a7ee
+export PATH="$NPATH"
Harald Hoyer b9a7ee
+unset NPATH
Harald Hoyer b9a7ee
 unset LD_LIBRARY_PATH
Harald Hoyer b9a7ee
 unset GREP_OPTIONS
Harald Hoyer b9a7ee