Product SiteDocumentation Site

12.2. GRUB 設定を編集する

The GRUB boot loader uses the configuration files /etc/default/grub and the scripts in etc/grub.d/. To configure GRUB to boot from the new files, add a boot stanza to /etc/grub.d/40_custom that refers to them.
menuentry "Fedora Linux" {
        set root=(hd0,0)
        linux /vmlinuz-install
        initrd /initrd.img-install
You may wish to add options to the end of the linux line of the boot stanza. These options set preliminary options in Anaconda which the user normally sets interactively. For a list of available installer boot options, refer to 11章ブートオプション.
When you are finished, run grub2-mkconfig with root privileges and open the grub.cfg file to view the updated configuration. Locate your new menu entry stanza and determine its place in the stanza order.
Finally, change the GRUB_DEFAULT option in /etc/default/grub to point to the new stanza you added. 0 will refer to the first stanza, 1 to the second, and so on. For example:
Alternatively, specify the menu entry title. This is particularly useful if you have a number of menu entries across the various script files.
GRUB_DEFAULT="Fedora Linux"