Browse Source

watchdog: stop watchdog in emergency_shell

master
Harald Hoyer 13 years ago
parent
commit
407fbc9e13
  1. 1
      modules.d/04watchdog/module-setup.sh
  2. 2
      modules.d/99base/dracut-lib.sh

1
modules.d/04watchdog/module-setup.sh

@ -22,5 +22,6 @@ install() { @@ -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"
}


2
modules.d/99base/dracut-lib.sh

@ -856,8 +856,6 @@ emergency_shell() @@ -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

Loading…
Cancel
Save