]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/dracut-lib.sh: reset /etc/profile
authorHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:10:15 +0000 (17:10 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:29:12 +0000 (17:29 +0100)
modules.d/99base/dracut-lib.sh

index 93283b54d108573b710f98afa5f6dd11ca41ed99..d2c803a5881ff9b89ad2e1149339de8c152ad7a1 100755 (executable)
@@ -908,6 +908,7 @@ _emergency_shell()
         > /.console_lock
         echo "PS1=\"$_name:\${PWD}# \"" >/etc/profile
         systemctl start dracut-emergency.service
+        rm -f /etc/profile
         rm -f /.console_lock
     else
         debug_off