in this directory are run. Files with a leading numeral are executed rst, beginning with
the lowest number. 00_header is run before 10_linux, which would run before
40_custom. If les with alphabetic names are present, they are executed after the
numerically-named les. Only executable les generate output to grub.cfg during
execution of grub2-mkconfig. By default all les in the /etc/grub.d directory
are executable.
A list of default scripts follows.
00_header
Sets environmental variables such as system le locations, video settings, themes,
and previously saved entries. It also imports preferences stored in the /etc/
default/grub. Normally you do not need to make changes to this le.
10_linux
Identies Linux kernels on the root device and creates relevant menu entries. This
includes the associated recovery mode option if enabled. Only the latest kernel is
displayed on the main menu page, with additional kernels included in a submenu.
30_os-prober
This script uses OS-prober to search for Linux and other operating systems and
places the results in the GRUB2 menu. There are sections to identify specic oper-
ating systems, such as Linux, Windows, Hurd, or Mac OS X.
40_custom
A template for custom menu entries to be inserted into grub.cfg. The contents
of this le, below the exec tail -n +3 $0 line and the default comments,
are imported directly into grub.cfg without any changes.
90_persistent
This is a special script which copies a corresponding part of the grub.cfg le
and outputs it back unchanged. This way you can modify that part of grub.cfg
directly and the change survives the execution of grub2-mkconfig.
10.2.4 The File /etc/syscong/bootloader
This conguration le is only used when conguring the bootloader with YaST and
every time a new kernel is installed. It is evaluated by the perl-bootloader library which
182 Reference