From 55c809c090acacd25bf4a10738b1310e2653cd4a Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 9 Sep 2013 15:21:10 +0200 Subject: [PATCH] linuxrc: make sure that /sbin and /usr/sbin are in PATH --- defaults/linuxrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/defaults/linuxrc b/defaults/linuxrc index d18e7f0..eb7e14b 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -24,6 +24,10 @@ if [ "$0" = "/init" ]; then rm -f /linuxrc fi +# make sure that /sbin and /usr/sbin are in PATH +# dmraid for instance is in /usr/sbin +PATH="${PATH}:/sbin:/usr/sbin" + CMDLINE=$(cat /proc/cmdline) FAKE_ROOT="" FAKE_INIT=""