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

37 lines
1.3 KiB
Diff
Raw Normal View History

From d6dfde78303ed20a4d8b3e7b77a447e7e12cbbba Mon Sep 17 00:00:00 2001
From: "dyoung@redhat.com" <dyoung@redhat.com>
Date: Mon, 31 Aug 2015 10:43:19 +0800
Subject: [PATCH] Revert "99fs-lib/fs-lib.sh: Let user specify the action after
fail for fsck"
This reverts commit 679fa7ed3c0f4c827bfc6885d34f56713fe85c1e.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
---
modules.d/99fs-lib/fs-lib.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules.d/99fs-lib/fs-lib.sh b/modules.d/99fs-lib/fs-lib.sh
index df3803d..672d027 100755
--- a/modules.d/99fs-lib/fs-lib.sh
+++ b/modules.d/99fs-lib/fs-lib.sh
@@ -5,14 +5,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"
- action_on_fail -n "(reboot ?)"
+ emergency_shell -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."
- action_on_fail -n "(Repair filesystem)"
+ emergency_shell -n "(Repair filesystem)"
}
# inherits: _ret _drv _out