From 316fb431ce50fadc73892f2ca842f3ffcb159330 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Wed, 24 Jul 2024 08:28:25 -0400 Subject: components/liveinstall: Support all expected architectures properly We want to be able to produce live ISOs for AArch64 and POWER with the correct GRUB configuration. This also sets us up to handle any quirks for each architecture platform as needed later. This also includes a change to bump the EFI partition size for ISOs to 30MB so everything fits. --- grub-x86.cfg.iso-template | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 grub-x86.cfg.iso-template (limited to 'grub-x86.cfg.iso-template') diff --git a/grub-x86.cfg.iso-template b/grub-x86.cfg.iso-template new file mode 100644 index 0000000..ca3a1c1 --- /dev/null +++ b/grub-x86.cfg.iso-template @@ -0,0 +1,44 @@ +# Inspired by the config used for lorax-built live media + +set default=${default_boot} + +if [ "$$grub_platform" == "efi" ]; then + function load_video { + insmod efi_gop + insmod efi_uga + insmod video_bochs + insmod video_cirrus + insmod all_video + } + set basicgfx="nomodeset" +else + function load_video { + insmod all_video + } + set basicgfx="nomodeset vga=791" +fi + +load_video +set gfxpayload=keep +insmod gzio +insmod part_gpt +insmod ext2 + +terminal_input console +terminal_output ${terminal_output} + +set timeout=${boot_timeout} +set timeout_style=${boot_timeout_style} + +search ${search_params} + +menuentry "Start ${title}" --class fedora --class gnu-linux --class gnu --class os { + linux ($$root)${bootpath}/${kernel_file} ${boot_options} + initrd ($$root)${bootpath}/${initrd_file} +} +submenu "Troubleshooting -->" { + menuentry "Start ${title} in basic graphics mode" --class fedora --class gnu-linux --class gnu --class os { + linux ($$root)${bootpath}/${kernel_file} ${boot_options} $${basicgfx} + initrd ($$root)${bootpath}/${initrd_file} + } +} -- cgit v1.3.1+13