init: move /.die to /run/initramfs/.die
authorHarald Hoyer <harald@redhat.com>
Thu, 7 Apr 2011 09:12:50 +0000 (11:12 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 8 Apr 2011 11:26:02 +0000 (13:26 +0200)
modules.d/99base/dracut-lib.sh
modules.d/99base/init

index a5a3f59..0e69793 100755 (executable)
@@ -246,7 +246,7 @@ die() {
        echo "exit 1"
     } >> $hookdir/emergency/01-die.sh
 
-    > /.die
+    > /run/initramfs/.die
     exit 1
 }
 
index 0f18b44..1eb97aa 100755 (executable)
@@ -52,7 +52,7 @@ emergency_shell()
     source_hook emergency
     echo
     wait_for_loginit
-    [ -e /.die ] && exit 1
+    [ -e /run/initramfs/.die ] && exit 1
     if getargbool 1 rd.shell -y rdshell || getarg rd.break rdbreak; then
         echo "Dropping to debug shell."
         echo