• So called “Stages” were dropped and the images that make up GRUB2 were re-orga-
nized.
10.2 Conguration File Structure
The actual conguration of GRUB2 is based on the following les:
/boot/grub2/grub.cfg
This le contains all information about the GRUB2 menu items. It replaces menu
.lst used in GRUB Legacy. grub.cfg is built by the grub2-mkconfig
command, and normally is not edited manually.
/etc/default/grub
This le controls the user settings of GRUB2 and usually includes additional envi-
ronmental settings such as backgrounds and themes.
Scripts under /etc/grub.d/
The scripts in this directory are read during execution of the grub2-mkconfig
command. Their instructions are then incorporated into the main conguration le
/boot/grub/grub.cfg.
/etc/sysconfig/bootloader
This le is read by the perl-bootloader library which is used when conguring the
bootloader with YaST and every time a new kernel is installed. It contains congu-
ration options (such as kernel parameters) that will be added by default to the
bootloader conguration le.
GRUB2 can be controlled in various ways. Boot entries from an existing conguration
can be selected from the graphical menu (splash screen). The conguration is loaded
from the le grub.cfg which is compiled from other conguration les (see below).
All GRUB2 conguration les are considered system les, and you need root privi-
leges to edit them. Remember to run grub2-mkconfig -o
/boot/grub2/grub.cfg after any change to GRUB2 conguration les.
178 Reference