possible mountroot regression
Marcel Moolenaar
marcel at xcllnt.net
Sat Aug 27 15:16:54 UTC 2011
On Aug 26, 2011, at 2:07 PM, Andriy Gapon wrote:
>
> It seems that after the introduction of the mountroot scripting language a user
> now has exactly one chance to try to specify a correct root device at the
> mountroot prompt. I am not sure that that is convenient/enough.
This is no different from before.
> I suspect that the following code is the cause:
>
> static void
> vfs_mountroot_conf0(struct sbuf *sb)
> {
> char *s, *tok, *mnt, *opt;
> int error;
>
> sbuf_printf(sb, ".onfail panic\n");
> …
Yes.
It is certainly a behavior we can improve upon. It's
rather annoying to get a panic on a typo. However,
we must remain cognizant of the fact that an immediate
hard failure is what's needed at times.
Maybe a good approach is to change to ".onfail retry"
and extend the root mount prompt with a reboot command,
so that the user/operator is does not have to worry
about typos *and* don't have to trigger a panic just
so that he/she can initiate a reboot.
Thoughts?
--
Marcel Moolenaar
marcel at xcllnt.net
More information about the freebsd-current
mailing list