04 September 2018 | 2 min read

Disable plymouth and boot much faster than before!

My workstation took more than a minute to boot into X

$ systemd-analyze time
Startup finished in 1.890s (kernel) + 4.702s (initrd) + 1min 20.163s (userspace) = 1min 26.756s
graphical.target reached after 58.148s in userspace

By disable plymouth at boot and in the initrd, I got much better result

$ systemd-analyze time
Startup finished in 1.911s (kernel) + 4.646s (initrd) + 37.884s (userspace) = 44.442s
graphical.target reached after 37.870s in userspace

The trick is to append more kernel parameter into grub file. Open you grub with sudo -E vim /etc/default/grub and appending nouveau.modeset=0 rd.plymouth=0 plymouth.enable=0 in the GRUB_CMDLINE_LINUX_DEFAULT,e.g:

$ cat /etc/default/grub
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_CMDLINE_LINUX="rd.driver.blacklist=nouveau resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet nouveau.modeset=0 rd.plymouth=0 plymouth.enable=0"

With this parameter, it will also disable the nouveau kernel module auto loading (for those having optimus = nvidia+intel card where nouveau interferes).

Now we need to rebuild the GRUB2 config file. Just run sudo grub2-mkconfig -o /boot/grub2/grub.cfg or if you have EFI feature with you computer, please run sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg command, make sure you know which command to execute!

Now reboot you computer with sudo /sbin/reboot

You should be booting without any UI and you can see details of boot process and the booting process are more faster than before!

Robbi Nespu | Bash, Fedora, Linux, SystemD

Discussion and feedback