Discussion:
How to hide boot console message.
(too old to reply)
李周华
2018-05-10 11:27:20 UTC
Permalink
Is it possible that the boot message is not displayed when boot ? Only show when some error happen.

Most of time there is no boot error occured, we no need to care the boot message.

I try create a file /boot.config with content "-mq"

add below lines

verbose_loading="NO"
boot_mute="YES"

in file /boot/loader.conf

but some network connection message still show , is there a way to hide that ? thanks
Ernie Luzar
2018-05-10 12:26:21 UTC
Permalink
Post by 李周华
Is it possible that the boot message is not displayed when boot ? Only show when some error happen.
Most of time there is no boot error occurred, we no need to care the boot message.
I try create a file /boot.config with content "-mq"
add below lines
verbose_loading="NO"
boot_mute="YES"
to file /boot/loader.conf
but some network connection message still show , is there a way to hide that ? thanks
With the above config if you are still getting boot time network
connection messages, then this is a bug. You should file a bug report
about this showing the output your getting.


Can help you with "stopping the boot time messages from showing". But
there is no control over showing only errors. The only error at boot
time is the system freezing up. You will notice this when it happens.
Any other error such as missed spelled options in /etc/rc.conf is not an
boot error. They are just ignored and the boot process continues by design.

If you use a boot time splash screen those "boot time messages" will not
show rolling across your master console. A few boot loader messages,
including the boot options menu and the timed wait
countdown prompt, are still displayed at boot time, even with the boot
splash screen enabled.

See handbook for info on how to configure.
https://www.freebsd.org/doc/handbook/boot-splash.html
李周华
2018-05-10 13:37:04 UTC
Permalink
Luzar, thanks for you quickly and kindly reply 😄.

Just now i download and add a .bmp image under /boot and add some lines in /boot/loader.conf .
now it content is that:
boot_mute="YES" verbose_loading="NO" beastie_disable="YES" autoboot_delay="-1" #kern.vty=vt #hw.vga.textmode=1 i915kms_load="YES" #kern.vt.fb.default_mode="1280x800" fuse_load="YES" snd_hda_load="YES" splash_bmp_load="YES" bitmap_load="YES" bitmap_name="/boot/splash.bmp"

Unfortunately only show the default ugly image, splash.bmp not show.
what worg with it ?
How to make a .pcx file or ascll art (splash.bin)?
thanks.
Post by 李周华
Is it possible that the boot message is not displayed when boot ? Only show when some error happen.
Most of time there is no boot error occurred, we no need to care the boot message.
I try create a file /boot.config with content "-mq"
add below lines
verbose_loading="NO"
boot_mute="YES"
to file /boot/loader.conf
but some network connection message still show , is there a way to hide that ? thanks
With the above config if you are still getting boot time network connection messages, then this is a bug. You should file a bug report about this showing the output your getting.
Can help you with "stopping the boot time messages from showing". But there is no control over showing only errors. The only error at boot time is the system freezing up. You will notice this when it happens. Any other error such as missed spelled options in /etc/rc.conf is not an boot error. They are just ignored and the boot process continues by design.
If you use a boot time splash screen those "boot time messages" will not show rolling across your master console. A few boot loader messages, including the boot options menu and the timed wait
countdown prompt, are still displayed at boot time, even with the boot splash screen enabled.
See handbook for info on how to configure. https://www.freebsd.org/doc/handbook/boot-splash.html
Ernie Luzar
2018-05-11 01:02:54 UTC
Permalink
Luzar, thanks for you quickly and kindly reply 😄.
Just now i download and add a .bmp image under /boot and add some lines
in /boot/loader.conf .
boot_mute="YES"
verbose_loading="NO"
beastie_disable="YES"
autoboot_delay="-1"
#kern.vty=vt
#hw.vga.textmode=1
i915kms_load="YES"
#kern.vt.fb.default_mode="1280x800"
fuse_load="YES"
snd_hda_load="YES"
splash_bmp_load="YES"
bitmap_load="YES"
bitmap_name="/boot/splash.bmp"
I see your problem now that you gave more details. Splash screen only
works with non-vt console screens. There is a bug report about this problem.

You need vt because you are running a desktop. There is no way to jump
between vt and sc console screen types after the OS is booted. This is a
known problem since 11.0 when vt became the default console screen driver.

Unless someone else jumps in with another solution I would say you have
reached the end of the road about your desire to kill all boot messages.

You said /boot/loader.conf defaulting to vt

boot_mute="YES"
verbose_loading="NO"
beastie_disable="YES"
autoboot_delay="-1"

kills all the boot messages except some networking messages. If this is
so then submit a PR about this to get those messages to abide with the
boot_mute="YES" option setting.

Good luck.
李周华
2018-05-11 04:13:34 UTC
Permalink
Very thanks Luzar.

May be I reached the end of the road.

So be it, I disable the splash feature and allow few message show.

By the way , where to submit a PR ?
Luzar, thanks for you quickly and kindly reply 😄.
Just now i download and add a .bmp image under /boot and add some lines in /boot/loader.conf .
boot_mute="YES"
verbose_loading="NO"
beastie_disable="YES"
autoboot_delay="-1"
#kern.vty=vt
#hw.vga.textmode=1
i915kms_load="YES"
#kern.vt.fb.default_mode="1280x800"
fuse_load="YES"
snd_hda_load="YES"
splash_bmp_load="YES"
bitmap_load="YES"
bitmap_name="/boot/splash.bmp"
I see your problem now that you gave more details. Splash screen only works with non-vt console screens. There is a bug report about this problem.
You need vt because you are running a desktop. There is no way to jump between vt and sc console screen types after the OS is booted. This is a known problem since 11.0 when vt became the default console screen driver.
Unless someone else jumps in with another solution I would say you have reached the end of the road about your desire to kill all boot messages.
You said /boot/loader.conf defaulting to vt
boot_mute="YES"
verbose_loading="NO"
beastie_disable="YES"
autoboot_delay="-1"
kills all the boot messages except some networking messages. If this is so then submit a PR about this to get those messages to abide with the boot_mute="YES" option setting.
Good luck.
Ernie Luzar
2018-05-11 11:21:47 UTC
Permalink
Post by 李周华
Very thanks Luzar.
May be I reached the end of the road.
So be it, I disable the splash feature and allow few message show.
By the way , where to submit a PR ?
https://bugs.freebsd.org/bugzilla/

李周华
2018-05-10 14:56:36 UTC
Permalink
I find in console show a error when boot.

.....
Changing splash image .
expr:division by zero
/etc/rc:ERROR:choice failed
......
Post by 李周华
Is it possible that the boot message is not displayed when boot ? Only show when some error happen.
Most of time there is no boot error occurred, we no need to care the boot message.
I try create a file /boot.config with content "-mq"
add below lines
verbose_loading="NO"
boot_mute="YES"
to file /boot/loader.conf
but some network connection message still show , is there a way to hide that ? thanks
With the above config if you are still getting boot time network connection messages, then this is a bug. You should file a bug report about this showing the output your getting.
Can help you with "stopping the boot time messages from showing". But there is no control over showing only errors. The only error at boot time is the system freezing up. You will notice this when it happens. Any other error such as missed spelled options in /etc/rc.conf is not an boot error. They are just ignored and the boot process continues by design.
If you use a boot time splash screen those "boot time messages" will not show rolling across your master console. A few boot loader messages, including the boot options menu and the timed wait
countdown prompt, are still displayed at boot time, even with the boot splash screen enabled.
See handbook for info on how to configure. https://www.freebsd.org/doc/handbook/boot-splash.html
Loading...