[arch-commits] Commit in linux/trunk (linux.install)

Dave Reisner dreisner at archlinux.org
Sun Jun 17 00:42:07 UTC 2012


    Date: Saturday, June 16, 2012 @ 20:42:06
  Author: dreisner
Revision: 161954

set a sane PATH for the install scriptlet

Hopefully this prevents people from shooting themselves in the face
when they, or something else, decides that /sbin doesn't belong here.

Modified:
  linux/trunk/linux.install

---------------+
 linux.install |    3 +++
 1 file changed, 3 insertions(+)

Modified: linux.install
===================================================================
--- linux.install	2012-06-16 23:09:26 UTC (rev 161953)
+++ linux.install	2012-06-17 00:42:06 UTC (rev 161954)
@@ -4,6 +4,9 @@
 KERNEL_NAME=
 KERNEL_VERSION=3.4.2-2-ARCH
 
+# set a sane PATH to ensure that critical utils like depmod will be found
+export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
+
 post_install () {
   # updating module dependencies
   echo ">>> Updating module dependencies. Please wait ..."




More information about the arch-commits mailing list