Silent boot: Difference between revisions

From Alpine Linux
(Created page with "==== What is silent boot? ==== Silent boot means to almost completely remove all kernel and OpenRC messages on boot from your system. This may make it harder to debug issues when booting your computer, but it is also relatively <u>simple</u> to get back a verbose message boot, with this following wiki page guide. This wiki page guide will remove all OpenRC messages, except login prompt. This will also remove kernel messages at boot. ==== Setting up silent-boot ==== ==...")
 
mNo edit summary
Line 1: Line 1:
==== What is silent boot? ====
== What is silent boot? ==
Silent boot means to almost completely remove all kernel and OpenRC messages on boot from your system. This may make it harder to debug issues when booting your computer, but it is also relatively <u>simple</u> to get back a verbose message boot, with this following wiki page guide.
Silent boot means to almost completely remove all kernel and OpenRC messages on boot from your system. This may make it harder to debug issues when booting your computer, but it is also relatively <u>simple</u> to get back a verbose message boot, with this following wiki page guide.


This wiki page guide will remove all OpenRC messages, except login prompt. This will also remove kernel messages at boot.
This wiki page guide will remove all OpenRC messages, except login prompt. This will also remove kernel messages at boot.


==== Setting up silent-boot ====
== Setting up silent-boot ==


===== Disable kernel messages: =====
=== Disable kernel messages: ===


====== Grub ======
==== Grub ====
Edit /etc/default/grub and add quiet to the GRUB_CMDLINE_LINUX variable:
Edit /etc/default/grub and add quiet to the GRUB_CMDLINE_LINUX variable:
{{cat|/etc/default/grub|
{{cat|/etc/default/grub|
Line 14: Line 14:
}}
}}


====== Kernel-hooks ======
==== Kernel-hooks ====
Modify /etc/kernel-hooks.d/secureboot.conf and add quiet to cmdline:
Modify /etc/kernel-hooks.d/secureboot.conf and add quiet to cmdline:
{{cat|/etc/kernel-hooks.d/secureboot.conf|
{{cat|/etc/kernel-hooks.d/secureboot.conf|
Line 20: Line 20:
}}
}}


===== Disable OpenRC Boot messages: =====
=== Disable OpenRC Boot messages: ===
Make your /etc/inittab similar to this:
Make your <code>/etc/inittab</code> similar to this:
{{cat|/etc/inittab|
{{cat|/etc/inittab|
# /etc/inittab
# /etc/inittab

Revision as of 07:30, 11 December 2024

What is silent boot?

Silent boot means to almost completely remove all kernel and OpenRC messages on boot from your system. This may make it harder to debug issues when booting your computer, but it is also relatively simple to get back a verbose message boot, with this following wiki page guide.

This wiki page guide will remove all OpenRC messages, except login prompt. This will also remove kernel messages at boot.

Setting up silent-boot

Disable kernel messages:

Grub

Edit /etc/default/grub and add quiet to the GRUB_CMDLINE_LINUX variable:

Contents of /etc/default/grub

GRUB_CMDLINE_LINUX="... quiet ..."

Kernel-hooks

Modify /etc/kernel-hooks.d/secureboot.conf and add quiet to cmdline:

Contents of /etc/kernel-hooks.d/secureboot.conf

cmdline="... quiet ..."

Disable OpenRC Boot messages:

Make your /etc/inittab similar to this:

Contents of /etc/inittab

# /etc/inittab ::sysinit:/sbin/openrc sysinit &> /dev/null ::sysinit:/sbin/openrc boot &> /dev/null ::wait:/sbin/openrc default &> /dev/null # Set up one getty tty1::respawn:/sbin/getty 38400 tty1 # Stuff to do before rebooting ::shutdown:/sbin/openrc shutdown &> /dev/null

Remove the "&> /dev/null" on each line to see OpenRC boot messages again.