[arch-projects] [mkinitcpio][PATCH 19/26] init: pass PATH to real PID 1's environment

Dave Reisner d at falconindy.com
Mon Sep 26 21:22:20 EDT 2011

We don't know what processes will be run by the new init, but they
should at least inherit a basic PATH to avoid any problems locating

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
 init |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/init b/init
index e8f70a1..f14261d 100644
--- a/init
+++ b/init
@@ -118,6 +118,6 @@ for d in proc sys dev run; do
         umount /${d}
-exec env -i TERM=$TERM /sbin/switch_root -c /dev/console /new_root ${init} "$@"
+exec env -i "TERM=$TERM" "PATH=$PATH" switch_root -c /dev/console /new_root ${init} "$@"
 # vim: set ft=sh ts=4 sw=4 et:

More information about the arch-projects mailing list