]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
shutdown: fix PATH
authorWill Woods <wwoods@redhat.com>
Wed, 21 Mar 2012 23:47:46 +0000 (19:47 -0400)
committerHarald Hoyer <harald@redhat.com>
Thu, 22 Mar 2012 12:43:03 +0000 (13:43 +0100)
Some systems might not use /bin:/sbin in their paths anymore, but we're
still using it in initramfs, so make sure our PATH is correct.

modules.d/99shutdown/shutdown.sh

index c8ca6641ec63bf454317cfb216bc6347a6a57fa8..8817a4c2c540f10d5cf17169905f83c8c6c5e6fc 100755 (executable)
@@ -10,6 +10,7 @@
 #!/bin/sh
 . /lib/dracut-lib.sh
 export TERM=linux
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
 
 emergency_shell()
 {