Page MenuHomeFreeBSD

Unmuting console boot messages for some scenarios
Needs ReviewPublic

Authored by nkumarababu_gmail.com on Apr 25 2024, 2:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 17, 5:40 AM
Unknown Object (File)
Fri, May 16, 12:05 PM
Unknown Object (File)
Fri, May 16, 12:01 PM
Unknown Object (File)
Apr 27 2025, 10:44 AM
Unknown Object (File)
Mar 15 2025, 7:48 PM
Unknown Object (File)
Mar 8 2025, 11:14 PM
Unknown Object (File)
Mar 2 2025, 4:12 PM
Unknown Object (File)
Feb 27 2025, 12:52 AM
Subscribers

Details

Reviewers
imp
Summary

Halt and a few error scenarios would need console boot messages
to be unmuted, if they are muted.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57337
Build 54225: arc lint + arc unit

Event Timeline

Any reason to not always set cn_mute = 0 unconditionally?

cn_mute should be 0, unless boot messages are explicitly muted. If boot messages are muted, this change is to unmute, to help restart in cases like "halt".

Any further questions/inputs on this change ?

I'm not sure I understood the response, and failed to say so at the time. My apologies for the oversight. I must have seen it and then failed to tag it for followup on my phone.

Originally, I was trying to ask something like: since cn_mute will only ever be set to 1 when RB_MUTEMSGS is set in boothowto, why is a check for that flag needed?

However, that was based on a sloppy reading of when cn_mute can be set to one. It can often be set by boot tuneable or when RB_MUTE is set. I'd not considered those cases, but even considering them, I don't understand the response, so I have some new questions to help me understand...

Why do you only want to unmute when RB_MUTEMSGS is set? Wouldn't you want to unconditionally unmute for these cases? When asking a question and when reporting an error?

Thanks for the followup. Again, sorry not replying sooner.

I hit submit too quickly. I'd like to add "We set it unconditionally in panic, so why not here too?"