27 Sep
2011
27 Sep
'11
1:22 a.m.
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 binaries. Signed-off-by: Dave Reisner <dreisner@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} fi done -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: -- 1.7.6.4