[arch-projects] [mkinitcpio][PATCH 9/9] init: purge environment before leaving early userspace
Dave Reisner
d at falconindy.com
Mon Jun 6 16:02:52 EDT 2011
We preserve TERM, but everything else can be destroyed from the
environment.
Signed-off-by: Dave Reisner <d at 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
More information about the arch-projects
mailing list