/etc/default/grub
/etc/default/grub
. The default options used when creating new entries for Fedora can also be found here.
/etc/grub.d/
/etc/grub.d
are used as templates for creating new GRUB entries as well as custom boot entries.
/boot
/boot
directory contains Fedora's kernel and initramfs
.
/boot/efi/EFI
/boot/efi/EFI
.
GRUB_CMDLINE_LINUX
in /etc/default/grub
.
GRUB_CMDLINE_LINUX
and regenerating grub.cfg
will apply the parameter to all current and future Fedora boot entries.
Example 1. In practice: Fixing backlight issues with kernel parameters
acpi_backlight=vendor
parameter.
/etc/default/grub
.
#
nano /etc/default/grub
GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) vconsole.keymap=us rhgb quiet" GRUB_DISABLE_RECOVERY="true"
GRUB_CMDLINE_LINUX
and save the file.
GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) vconsole.keymap=us rhgb quiet acpi_backlight=vendor" GRUB_DISABLE_RECOVERY="true"
#
grub2-mkconfig -o /boot/grub/grub2.cfg
#
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg