]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/init: unset HOME and TERM for real init
authorHarald Hoyer <harald@redhat.com>
Wed, 15 Sep 2010 09:54:37 +0000 (11:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 20 Sep 2010 12:53:45 +0000 (14:53 +0200)
modules.d/99base/init

index 121d70e8d7111cb05c3579855087e6480bb101d2..bff390d64085b5620a8508bafbe0767256b3e50f 100755 (executable)
@@ -318,6 +318,8 @@ info "Switching root"
 wait_for_loginit
 
 umask $OLD_UMASK
+unset HOME
+unset TERM
 
 exec switch_root "$NEWROOT" "$INIT" $initargs || {
     echo "Something went very badly wrong in the initramfs.  Please "