]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99base/init: save and restore environment given from the kernel
authorHarald Hoyer <harald@redhat.com>
Tue, 30 Aug 2011 14:22:46 +0000 (16:22 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 30 Aug 2011 14:22:46 +0000 (16:22 +0200)
modules.d/99base/init

index 0328903bd549eec55b97ef47b6c4db7a3062d2b0..21b946868d718e8e474830f90c62ce89c3d56986 100755 (executable)
@@ -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