Grub Boot entry Options

Folks,

Trying to understand GRUB and following advice on this forum I have copied an existing GRUB boot entry to the 40_custom file in /etc/grub.d folder.

Now, apologies for using the Ubuntu details but what is puzzling me is–

If I drop into the >grub menu all I need to enter is the following;

set root=‘hd0,gpt5’
linux /boot/vmlinuz-4.15.0-64-generic root=UUID=bc1e9e10-5179-4ab0-8d90-afb9ac502ad0
initrd /boot/initrd.img-4.15.0-64-generic
boot

And the system loads correctly so question is, what is the following for that forms part of the loading system?

recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2

I’m guessing the if and else statements are in case of an error but the others are a mystery.

Geoff

1 Like
2 Likes