Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally silence devmatch, routing rc scripts operations #1582

Conversation

sgharms
Copy link

@sgharms sgharms commented Jan 26, 2025

I am interested in helping the Laptop working group (a focus of 2025) and was
trying to help smooth any rough edges that might spook a newer installer/user.
One of the items overwhelming is the chattiness of startup. While boot_mute=YES
catches a stage's worth of messages, the rc startup scripts can be daunting
or...well, there's just a lot of them. The forums and other development
efforts document this. It's a recurrent forum question and helloSystem has
done some...extraordinary work to hide them

Looking at the scripts, there didn't seem to be a unified way to lower their
verbosity. Additionally, what's emitting could be the binary where a
more-silent flag is not used e.g. routing OR the rc script devmatch.
Lacking a single "master control" to silence things, I just want after the
chattiest things that irritated, uh, me. ;)

Steven G. Harms added 3 commits January 26, 2025 13:31
The rc scripts afford various levels of support for quiet mode.  For
example, route(8) has `-q` and `wpa_supplicant(8)` has `-s`.

The rc file for `/etc/rc.d/devmatch` uses the standard shell `echo`
command.

For those who like a quieter bootup (less-technical users, those whose
infrastructure environments are reliable/stable), this can be confusing
or frustrating.

With this change, users may squelch the echo behavior.

devmatch_autoloading_msgs="NO"	# Do not log "Autoloading" to console from devmatch rc.

Signed-off-by: Steven G. Harms <[email protected]>
route(8) supports a quiet mode that was inaccessible. This changes
surfaces a means for adding an arbitrary number of flags (similar to
dhclient RC and others).

For those who like a quieter bootup (less-technical users, those whose
infrastructure environments are reliable/stable), the previous output
could be confusing or frustrating.

Signed-off-by: Steven G. Harms <[email protected]>
If we're not interested in checking messages thru rc_quiet
  and we're not interested in start messages thru rc_startmsgs=NO..

then why not send errors to the bit-bucket for a cleaner startup?

Signed-off-by: Steven G. Harms <[email protected]>
@jlduran
Copy link
Member

jlduran commented Feb 1, 2025

Thank you for your interest regarding this topic.
I tried silencing a few rc scripts as well a while back (jlduran#90).
The reason why I never submitted it, was because check_startmsgs should just silence those services that print "Starting <service>". If we start silencing all echoed messages behind this check, a change in the documentation is required (that can be a bit more delicate than what it sounds).
There's also rc_quiet, and as you mentioned boot_mute, even using all of them combined won't get us a "clean" boot.
This is my personal opinion on the subject, hopefully this pull request sparks the interest of the rc working group, I'll keep subscribed, as I also find it appealing to have an easy, out-of-the-box "clean" boot option.

@Gulcantaysun1
Copy link

Tecrübesizim bu tür konularda , cihazımda sürekli olarak değiştirildiğini hissettiğim birseyler var. Değiştirilmiş birşeyi nasıl bulabilirim

Copy link
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sgharms :-)

  • There is already rc_info that may be used?
    rc_info="NO" # Enables display of informational messages at boot.
  • There is already rc_startmsg that may be used?
    rc_startmsgs="YES" # Show "Starting foo:" messages at boot
  • If really necessary _msgs can be replaced with _verbose suffix?
    ip6addrctl_verbose="NO" # Set to YES to enable verbose configuration messages
  • Adding routing_flags seems okay as -q may be set that way :-)
  • I guess the idea is to silence the terminal? How many flags need to be put to silent instead just one? Why not just put a boot logo image if you really do not want to see the boot messages? It may provide expected user experience and will not impact diagnostic information that are usually useful :-)

@sgharms
Copy link
Author

sgharms commented Feb 5, 2025

To close the loop here (in parallel to the mailing list): I think the optimal solution is for boot_mute=YES to extend the overlay until the point that the login menu is ready (probably after doing a screen reset so that the login prompt is the only thing on screen).

Presently boot_mute seems to stop the overlay after the kernel gets a hold of the VTs (explains the phenomenon I'm seeing here). Extending that overlay's duration would fix things IMHO.

@sgharms sgharms closed this Feb 5, 2025
@cederom
Copy link
Contributor

cederom commented Feb 6, 2025

Thank you @sgharms for a good discussion !! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants