From: Harald Hoyer Date: Thu, 17 Sep 2009 14:27:12 +0000 (+0200) Subject: dracut: use and export PATH=/sbin:/bin:/usr/sbin:/usr/bin X-Git-Tag: 002~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8545d04b7152b91ea85d2dcf9adbc631e7e4000;p=thirdparty%2Fdracut.git dracut: use and export PATH=/sbin:/bin:/usr/sbin:/usr/bin There's no need for /usr/local to be in our paths at all, nor to include a :$PATH at the end. The path should be exported though, so modules don't have to worry about finding things. --- diff --git a/dracut b/dracut index a6705e330..f2bd271bb 100755 --- a/dracut +++ b/dracut @@ -96,7 +96,8 @@ while (($# > 0)); do shift done -PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH +PATH=/sbin:/bin:/usr/sbin:/usr/bin +export PATH [[ $debug ]] && { export PS4='${BASH_SOURCE}@${LINENO}(${FUNCNAME[0]}): ';