summaryrefslogtreecommitdiff
path: root/dracut
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-09-17 16:27:12 +0200
committerHarald Hoyer <harald@redhat.com>2009-09-17 16:36:08 +0200
commitf8545d04b7152b91ea85d2dcf9adbc631e7e4000 (patch)
tree90bf08ab0413e49277777d2131ed5e845b5988fa /dracut
parente73c975bad469ecf7e8df5a824511d1407d5672c (diff)
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.
Diffstat (limited to 'dracut')
-rwxr-xr-xdracut3
1 files changed, 2 insertions, 1 deletions
diff --git a/dracut b/dracut
index a6705e3..f2bd271 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]}): ';