3.6 Modifying Kernel Boot Parameters in GRUB 2

To modify the boot parameters in the GRUB 2 configuration so that they are applied by default at every reboot:

  1. Edit /etc/default/grub and modify the parameters in the GRUB_CMDLINE_LINUX definition, for example:

    GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 vconsole.keymap=uk 
    crashkernel=auto  rd.lvm.lv=ol/swap rd.lvm.lv=ol/root biosdevname=0 
    rhgb quiet systemd.unit=runlevel3.target"

    This example adds the parameter systemd.unit=runlevel3.target so that the system boots into multi-user, non-graphical mode by default.

  2. Rebuild /boot/grub2/grub.cfg:

    # grub2-mkconfig -o /boot/grub2/grub.cfg

    The change takes effect for subsequent system reboots of all configured kernels.