99base/init: save and restore environment given from the kernel

master
Harald Hoyer 2011-08-30 16:22:46 +02:00
parent 2c0b5281f5
commit ed42e64cfc
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@
# Harald Hoyer <harald@redhat.com>
# Jeremy Katz <katzj@redhat.com>

export -p > /tmp/export.orig

wait_for_loginit()
{
set +x
@ -391,6 +393,8 @@ for i in $(export -p); do
unset "$i";;
esac
done
. /tmp/export.orig
rm -f /tmp/export.orig

initargs=""
read CLINE </proc/cmdline