openSUSE Tumblweed 2018/1/28のgrub.cfgです。
そのままコピペです。
with_gfx=1
gfxmode=auto
locale_dir=$prefix/locale
lang=en_US
search --no-floppy --file /boot/x86_64/efi --set
prefix=($root)/boot/x86_64/grub2-efi
insmod efi_gop
insmod efi_uga
insmod gzio
insmod gettext
if [ "$with_gfx" = 1 ] ; then
insmod gfxterm
insmod gfxmenu
insmod png
echo "Please press 't' to show the boot menu on this console"
terminal_output gfxterm
theme=$prefix/themes/openSUSE/theme.txt
export theme
loadfont $prefix/unicode.pf2
loadfont $prefix/themes/openSUSE/DejaVuSans10.pf2
loadfont $prefix/themes/openSUSE/DejaVuSans12.pf2
loadfont $prefix/themes/openSUSE/DejaVuSans-Bold14.pf2
fi
if sleep --interruptible 0 ; then
timeout=60
fi
default=1
# look for an installed SUSE system and boot it
menuentry "Boot from Hard Disk" --class opensuse --class gnu-linux --class gnu
--class os {
if search --no-floppy --file /efi/boot/fallback.efi --set ; then
for os in opensuse sles caasp ; do
if [ -f /efi/$os/grub.efi ] ; then
chainloader /efi/$os/grub.efi
fi
done
fi
}
menuentry 'Installation' --class opensuse --class gnu-linux --class gnu
--class os {
set gfxpayload=keep
echo 'Loading kernel ...'
linuxefi /boot/x86_64/loader/linux splash=silent
echo 'Loading initial ramdisk ...'
initrdefi /boot/x86_64/loader/initrd
}
menuentry 'Upgrade' --class opensuse --class gnu-linux --class gnu --class
os {
set gfxpayload=keep
echo 'Loading kernel ...'
linuxefi /boot/x86_64/loader/linux splash=silent upgrade=1
echo 'Loading initial ramdisk ...'
initrdefi /boot/x86_64/loader/initrd
}
submenu 'More ...' {
menuentry 'Rescue System' --class opensuse --class gnu-linux --class gnu
{
set gfxpayload=keep
echo 'Loading kernel ...'
linuxefi /boot/x86_64/loader/linux splash=silent rescue=1
echo 'Loading initial ramdisk ...'
initrdefi /boot/x86_64/loader/initrd
}
menuentry 'Boot Linux System' --class opensuse --class gnu-linux --class
gnu {
set gfxpayload=keep
echo 'Loading kernel ...'
linuxefi /boot/x86_64/loader/linux splash=silent systemboot=1
echo 'Loading initial ramdisk ...'
initrdefi /boot/x86_64/loader/initrd
}
menuentry 'Check Installation Media' --class opensuse --class gnu-linux
--class gnu {
set gfxpayload=keep
echo 'Loading kernel ...'
linuxefi /boot/x86_64/loader/linux splash=silent mediacheck=1
echo 'Loading initial ramdisk ...'
initrdefi /boot/x86_64/loader/initrd
}
}
# On EFI systems we can only have graphics *or* serial, so allow the
user
# to switch between the two
hiddenentry 'Text mode' --hotkey 't' {
set textmode=true
terminal_output console
}