Blame 0069-99fs-lib-fs-lib.sh-Let-user-specify-the-action-after.patch

Harald Hoyer 75f812
From 679fa7ed3c0f4c827bfc6885d34f56713fe85c1e Mon Sep 17 00:00:00 2001
Harald Hoyer 75f812
From: Baoquan He <bhe@redhat.com>
Harald Hoyer 75f812
Date: Wed, 29 May 2013 14:33:06 +0800
Harald Hoyer 75f812
Subject: [PATCH] 99fs-lib/fs-lib.sh: Let user specify the action after fail
Harald Hoyer 75f812
 for fsck
Harald Hoyer 75f812
Harald Hoyer 75f812
The fsck is ignored when replace emergency_shell with action_on_fail,
Harald Hoyer 75f812
now add it.
Harald Hoyer 75f812
Harald Hoyer 75f812
Signed-off-by: Baoquan He <bhe@redhat.com>
Harald Hoyer 75f812
---
Harald Hoyer 75f812
 modules.d/99fs-lib/fs-lib.sh | 4 ++--
Harald Hoyer 75f812
 1 file changed, 2 insertions(+), 2 deletions(-)
Harald Hoyer 75f812
Harald Hoyer 75f812
diff --git a/modules.d/99fs-lib/fs-lib.sh b/modules.d/99fs-lib/fs-lib.sh
Harald Hoyer 75f812
index e1f3074..88e7348 100755
Harald Hoyer 75f812
--- a/modules.d/99fs-lib/fs-lib.sh
Harald Hoyer 75f812
+++ b/modules.d/99fs-lib/fs-lib.sh
Harald Hoyer 75f812
@@ -7,14 +7,14 @@ type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
Harald Hoyer 75f812
 fsck_ask_reboot() {
Harald Hoyer 75f812
     info "note - fsck suggests reboot, if you"
Harald Hoyer 75f812
     info "leave shell, booting will continue normally"
Harald Hoyer 75f812
-    emergency_shell -n "(reboot ?)"
Harald Hoyer 75f812
+    action_on_fail -n "(reboot ?)"
Harald Hoyer 75f812
 }
Harald Hoyer 75f812
 
Harald Hoyer 75f812
 fsck_ask_err() {
Harald Hoyer 75f812
     warn "*** An error occurred during the file system check."
Harald Hoyer 75f812
     warn "*** Dropping you to a shell; the system will try"
Harald Hoyer 75f812
     warn "*** to mount the filesystem(s), when you leave the shell."
Harald Hoyer 75f812
-    emergency_shell -n "(Repair filesystem)"
Harald Hoyer 75f812
+    action_on_fail -n "(Repair filesystem)"
Harald Hoyer 75f812
 }
Harald Hoyer 75f812
 
Harald Hoyer 75f812
 # inherits: _ret _drv _out