]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
watchdog: stop watchdog in emergency_shell
authorHarald Hoyer <harald@redhat.com>
Wed, 27 Jun 2012 15:06:23 +0000 (17:06 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 29 Jun 2012 10:51:13 +0000 (12:51 +0200)
modules.d/04watchdog/module-setup.sh
modules.d/99base/dracut-lib.sh

index 8b8c09b73abbe99726c879505e4ffd771a85c602..5fc77f4e1580492742a71984865e45fab21fd687 100755 (executable)
@@ -22,5 +22,6 @@ install() {
     inst_hook pre-pivot 99 "$moddir/watchdog.sh"
     inst_hook cleanup   00 "$moddir/watchdog.sh"
     inst_hook cleanup   99 "$moddir/watchdog.sh"
+    inst_hook emergency 02 "$moddir/watchdog-stop.sh"
 }
 
index e63f3f0442f4f3d58520f00646675b5b6e1bdaa2..1ee671e0138087bfd9a12fd59d2016db71419781 100755 (executable)
@@ -856,8 +856,6 @@ emergency_shell()
             fi
             [ -c "$_ctty" ] || _ctty=/dev/tty1
             strstr "$(setsid --help 2>/dev/null)" "ctty" && CTTY="-c"
-        # stop watchdog
-            echo 'V' > /dev/watchdog
             setsid $CTTY /bin/sh -i -l 0<$_ctty 1>$_ctty 2>&1
         fi
     else