Operation Manual

So called “Stages” were dropped and the images that make up GRUB2 were re-orga-
nized.
10.2 Conguration File Structure
The actual conguration 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 conguration le
/boot/grub/grub.cfg.
/etc/sysconfig/bootloader
This le is read by the perl-bootloader library which is used when conguring the
bootloader with YaST and every time a new kernel is installed. It contains congu-
ration options (such as kernel parameters) that will be added by default to the
bootloader conguration le.
GRUB2 can be controlled in various ways. Boot entries from an existing conguration
can be selected from the graphical menu (splash screen). The conguration is loaded
from the le grub.cfg which is compiled from other conguration les (see below).
All GRUB2 conguration 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 conguration les.
178 Reference