Thursday, May 5, 2016

Verbose Boot, Enable on CentOS 7

THE WRONG WAY:
To disable graphical booting in CentOS 7, some suggest that we need to edit file /etc/default/grub as follows:

# vi /etc/default/grub
Remove “rhgb quiet” from the line beginning with “GRUB_CMDLINE_LINUX”, as shown below:
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap"

However, this does not work.

THE RIGHT WAY:
The following will produce the results we are looking for:

Step 1 - Using the “plymouth-set-default-theme” command, see what the current setting is. By default, it is set to “charge”. I edited file /etc/default/grub, so it is currently set to “text”:
# plymouth-set-default-theme
text

However, this setting does not give us verbose boot at startup.

Step 2 - To produce verbose booting, we need to set this value to “details”:
# plymouth-set-default-theme details
# dracut -f
(This will take a minute before your prompt is returned).

Double-check your settings:
# plymouth-set-default-theme
details

Step 3 - Test your changes by rebooting your system:
# shutdown -r now


No comments:

Post a Comment