From: Harald Hoyer Date: Wed, 8 Feb 2012 16:02:17 +0000 (+0100) Subject: dracut: setup clean PATH w/o existing one X-Git-Tag: 016~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68910ba4a510e2d10e1c16adb348a8916a74b281;p=thirdparty%2Fdracut.git dracut: setup clean PATH w/o existing one --- diff --git a/dracut b/dracut index 86fcaf3e4..545f9dbc7 100755 --- a/dracut +++ b/dracut @@ -284,9 +284,10 @@ for i in /usr/bin /bin /usr/sbin /sbin; do if [ -L "$i" ]; then rl=$(readlink -f $i) fi - PATH="$PATH:$rl" + NPATH="$NPATH:$rl" done -export PATH +export PATH="$NPATH" +unset NPATH unset LD_LIBRARY_PATH unset GREP_OPTIONS