4 Jun
2011
4 Jun
'11
5:18 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 67039c8..db93e9b 100644 --- a/init +++ b/init @@ -112,4 +112,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