Blame 0166-Revert-99fs-lib-fs-lib.sh-Let-user-specify-the-actio.patch

Harald Hoyer bb31e7
From d6dfde78303ed20a4d8b3e7b77a447e7e12cbbba Mon Sep 17 00:00:00 2001
Harald Hoyer bb31e7
From: "dyoung@redhat.com" <dyoung@redhat.com>
Harald Hoyer bb31e7
Date: Mon, 31 Aug 2015 10:43:19 +0800
Harald Hoyer bb31e7
Subject: [PATCH] Revert "99fs-lib/fs-lib.sh: Let user specify the action after
Harald Hoyer bb31e7
 fail for fsck"
Harald Hoyer bb31e7
Harald Hoyer bb31e7
This reverts commit 679fa7ed3c0f4c827bfc6885d34f56713fe85c1e.
Harald Hoyer bb31e7
Harald Hoyer bb31e7
action_on_fail is useless thus remove the commits for it one by one.
Harald Hoyer bb31e7
Harald Hoyer bb31e7
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer bb31e7
---
Harald Hoyer bb31e7
 modules.d/99fs-lib/fs-lib.sh | 4 ++--
Harald Hoyer bb31e7
 1 file changed, 2 insertions(+), 2 deletions(-)
Harald Hoyer bb31e7
Harald Hoyer bb31e7
diff --git a/modules.d/99fs-lib/fs-lib.sh b/modules.d/99fs-lib/fs-lib.sh
Harald Hoyer bb31e7
index df3803d..672d027 100755
Harald Hoyer bb31e7
--- a/modules.d/99fs-lib/fs-lib.sh
Harald Hoyer bb31e7
+++ b/modules.d/99fs-lib/fs-lib.sh
Harald Hoyer bb31e7
@@ -5,14 +5,14 @@ type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
Harald Hoyer bb31e7
 fsck_ask_reboot() {
Harald Hoyer bb31e7
     info "note - fsck suggests reboot, if you"
Harald Hoyer bb31e7
     info "leave shell, booting will continue normally"
Harald Hoyer bb31e7
-    action_on_fail -n "(reboot ?)"
Harald Hoyer bb31e7
+    emergency_shell -n "(reboot ?)"
Harald Hoyer bb31e7
 }
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
 fsck_ask_err() {
Harald Hoyer bb31e7
     warn "*** An error occurred during the file system check."
Harald Hoyer bb31e7
     warn "*** Dropping you to a shell; the system will try"
Harald Hoyer bb31e7
     warn "*** to mount the filesystem(s), when you leave the shell."
Harald Hoyer bb31e7
-    action_on_fail -n "(Repair filesystem)"
Harald Hoyer bb31e7
+    emergency_shell -n "(Repair filesystem)"
Harald Hoyer bb31e7
 }
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
 # inherits: _ret _drv _out