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:
GRUB_DEFAULT=0
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"