99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck

The fsck is ignored when replace emergency_shell with action_on_fail,
now add it.

Signed-off-by: Baoquan He <bhe@redhat.com>
master
Baoquan He 2013-05-29 14:33:06 +08:00 committed by Harald Hoyer
parent 4f084f3ab5
commit 679fa7ed3c
1 changed files with 2 additions and 2 deletions

View File

@ -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