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.
master
Harald Hoyer 2009-09-17 16:27:12 +02:00
parent e73c975bad
commit f8545d04b7
1 changed files with 2 additions and 1 deletions

3
dracut
View File

@ -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]}): ';