Page MenuHomeFreeBSD

Un-mute console on root mount failure
Needs ReviewPublic

Authored by ali.abdallah_suse.com on Nov 8 2024, 9:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 15, 7:22 PM
Unknown Object (File)
Thu, Jan 8, 4:20 AM
Unknown Object (File)
Dec 8 2025, 12:31 PM
Unknown Object (File)
Nov 28 2025, 1:03 AM
Unknown Object (File)
Nov 17 2025, 4:59 AM
Unknown Object (File)
Nov 15 2025, 1:58 AM
Unknown Object (File)
Nov 7 2025, 11:42 PM
Unknown Object (File)
Nov 5 2025, 6:26 PM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

When boot_mute is set to yes in loader.conf, any root mount failure messages are not shown. I noticed this on one of my system where zfs failed to export zroot, but since boot_mute was set to TRUE, the system just hanged without showing the messages from vfs_mountroot

I believe the console should be unmuted in other cases as well (panic during boot for example).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

ali.abdallah_suse.com edited the summary of this revision. (Show Details)

@imp this seems generally reasonable to me, although we might want a three-state setting, no mute, mute until error, mute always?

kern/kern_cons.c
573โ€“574

Why check first?

@imp this seems generally reasonable to me, although we might want a three-state setting, no mute, mute until error, mute always?

So we know some errors, but generally, I think this isn't quite ready. At a minimum we shouldn't necessarily unmute here, since that makes it unconditional and further kernel messages are always printed. If we want to unmute for errors, then there's a tiny number of things. that are unmute worthy. panic, password prompt and can't mount root. I can't think of any others. And the 'prompt for password' thing maybe should just unmute for that.

So I'm uneasy about this in it's current form.

kern/kern_cons.c
573โ€“574

Yea, this should be unconditional.