]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck
authorBaoquan He <bhe@redhat.com>
Wed, 29 May 2013 06:33:06 +0000 (14:33 +0800)
committerHarald Hoyer <harald@redhat.com>
Thu, 30 May 2013 06:28:08 +0000 (08:28 +0200)
The fsck is ignored when replace emergency_shell with action_on_fail,
now add it.

Signed-off-by: Baoquan He <bhe@redhat.com>
modules.d/99fs-lib/fs-lib.sh

index e1f307451a3a6e80c81af058507e0fc25194e44f..88e734859f9420af02093fc12cd798c2d43a31ce 100755 (executable)
@@ -7,14 +7,14 @@ type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
 fsck_ask_reboot() {
     info "note - fsck suggests reboot, if you"
     info "leave shell, booting will continue normally"
-    emergency_shell -n "(reboot ?)"
+    action_on_fail -n "(reboot ?)"
 }
 
 fsck_ask_err() {
     warn "*** An error occurred during the file system check."
     warn "*** Dropping you to a shell; the system will try"
     warn "*** to mount the filesystem(s), when you leave the shell."
-    emergency_shell -n "(Repair filesystem)"
+    action_on_fail -n "(Repair filesystem)"
 }
 
 # inherits: _ret _drv _out