6 Jun
2011
6 Jun
'11
10:02 p.m.
We preserve TERM, but everything else can be destroyed from the environment. Signed-off-by: Dave Reisner <d@falconindy.com> --- init | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/init b/init index 1f6bc4e..a1398b6 100644 --- a/init +++ b/init @@ -117,4 +117,4 @@ for d in proc sys dev run; do /bin/umount /${d} fi done -exec /sbin/switch_root -c /dev/console /new_root ${init} "$@" +exec env -i TERM=$TERM /sbin/switch_root -c /dev/console /new_root ${init} "$@" -- 1.7.5.4