From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vivek Goyal Subject: Re: [Patch v2 1/2] 99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck Date: Thu, 30 May 2013 13:02:40 -0400 Message-ID: <20130530170240.GH2864@redhat.com> References: <078c160e62c2c750efe71fc8a05dd7c5de71bde3.1369816679.git.bhe@redhat.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <078c160e62c2c750efe71fc8a05dd7c5de71bde3.1369816679.git.bhe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Baoquan He Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Wed, May 29, 2013 at 04:38:31PM +0800, Baoquan He wrote: > The fsck is ignored when replace emergency_shell with action_on_fail, > now add it. should action_on_fail be named rd.action_on_fail to make it explicit that this is an initramfs option and not a kernel command line option as such. Vivek > > Signed-off-by: Baoquan He > --- > modules.d/99fs-lib/fs-lib.sh | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/modules.d/99fs-lib/fs-lib.sh b/modules.d/99fs-lib/fs-lib.sh > index e1f3074..88e7348 100755 > --- a/modules.d/99fs-lib/fs-lib.sh > +++ b/modules.d/99fs-lib/fs-lib.sh > @@ -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 > -- > 1.7.1 > > -- > To unsubscribe from this list: send the line "unsubscribe initramfs" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html