Re: Adjustments to userland for a quieter startup (RC system)

From: Tomek CEDRO <tomek_at_cedro.info>
Date: Sun, 02 Feb 2025 04:45:55 UTC
On Sun, Feb 2, 2025 at 1:18 AM Tomek CEDRO <tomek@cedro.info> wrote:
> On Sun, Feb 2, 2025 at 12:16 AM Steven Harms (High-Security Mail)
> <sgharms@stevengharms.com> wrote:
> > Greetings,
> > I have created https://github.com/freebsd/freebsd-src/pull/1582 in an effort to quiet down some of the chattiness of module linking and network diagnostics on startup. I'm used to working in a git-based workflow and saw no action on the PR, so I thought I would notify here. If that's not the correct procedure, please advise.
> > Thanks for all the work everyone on the list does!
> > Steven
>
> Thanks @sgharms :-) I am against the change in current form because:
> * The concept may be useful for someone but it shall be a manually
> selectable option like `rc_mute` (in analog to `boot_mute`) and not a
> default. Maybe `rc_loglevel` that can get `silent, error, warning,
> info, verbose, debug` levels to rc scripts and services? Change does
> not provide a choice.
> * Boot log messages are extremely useful, they contain important
> diagnostic messages, these need to be logged even if silenced, these
> cannot be just sent to `/dev/null`. Change alters (breaks) logging.
> * Why not just put a boot logo image if you really do not want to see
> the boot messages? It will provide better user experience as expected
> but will not break the diagnostic information that are usually useful.
>
> My 2 cents :-)

Okay, I am sorry, I mixed the general idea with detailed PR that aims
just updating routing and devmatch parts with user selectable option
not changing a defaults, thus my previous remarks are invalid and
updated, I apologize! :-)

* There is already `rc_info` that may be used?
https://github.com/freebsd/freebsd-src/blob/50c962d773705f60d32c29f8e4bb2743ab55733b/libexec/rc/rc.conf#L29

* There is already `rc_startmsg` that may be used?
https://github.com/freebsd/freebsd-src/blob/50c962d773705f60d32c29f8e4bb2743ab55733b/libexec/rc/rc.conf#L30

* If really necessary `_msgs` can be replaced with `_verbose` suffix?
https://github.com/freebsd/freebsd-src/blob/50c962d773705f60d32c29f8e4bb2743ab55733b/libexec/rc/rc.conf#L568

* 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 :-)


-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info