From f9fbfc24e0bca31452f96e138fb163a623328c5d Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Tue, 27 Aug 2024 15:53:33 -0400 Subject: components/liveinstall: Enable mediacheck for live ISOs This brings us to full parity with official Fedora ISOs produced by Lorax. --- components/liveinstall.xml | 7 ++++--- grub-arm.cfg.iso-template | 6 +++++- grub-ppc.cfg.iso-template | 6 +++++- grub-x86.cfg.iso-template | 6 +++++- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/components/liveinstall.xml b/components/liveinstall.xml index b847eac..c870f87 100644 --- a/components/liveinstall.xml +++ b/components/liveinstall.xml @@ -7,7 +7,7 @@ @@ -16,7 +16,7 @@ @@ -25,7 +25,7 @@ @@ -41,6 +41,7 @@ + diff --git a/grub-arm.cfg.iso-template b/grub-arm.cfg.iso-template index e24dd2d..037ae79 100644 --- a/grub-arm.cfg.iso-template +++ b/grub-arm.cfg.iso-template @@ -1,6 +1,6 @@ # Inspired by the config used for lorax-built live media -set default=${default_boot} +set default="1" function load_video { insmod efi_gop @@ -29,6 +29,10 @@ menuentry "Start ${title}" --class fedora --class gnu-linux --class gnu --class linux ($$root)${bootpath}/${kernel_file} ${boot_options} initrd ($$root)${bootpath}/${initrd_file} } +menuentry "Test this media & start ${title}" --class fedora --class gnu-linux --class gnu --class os { + linux ($$root)${bootpath}/${kernel_file} ${boot_options} rd.live.check + 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} diff --git a/grub-ppc.cfg.iso-template b/grub-ppc.cfg.iso-template index 3ed12bb..26cd610 100644 --- a/grub-ppc.cfg.iso-template +++ b/grub-ppc.cfg.iso-template @@ -1,6 +1,6 @@ # Inspired by the config used for lorax-built live media -set default=${default_boot} +set default="1" insmod gzio insmod part_gpt @@ -18,6 +18,10 @@ menuentry "Start ${title}" --class fedora --class gnu-linux --class gnu --class linux ($$root)${bootpath}/${kernel_file} ${boot_options} initrd ($$root)${bootpath}/${initrd_file} } +menuentry "Test this media & start ${title}" --class fedora --class gnu-linux --class gnu --class os { + linux ($$root)${bootpath}/${kernel_file} ${boot_options} rd.live.check + 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} diff --git a/grub-x86.cfg.iso-template b/grub-x86.cfg.iso-template index ca3a1c1..9b779bd 100644 --- a/grub-x86.cfg.iso-template +++ b/grub-x86.cfg.iso-template @@ -1,6 +1,6 @@ # Inspired by the config used for lorax-built live media -set default=${default_boot} +set default="1" if [ "$$grub_platform" == "efi" ]; then function load_video { @@ -36,6 +36,10 @@ menuentry "Start ${title}" --class fedora --class gnu-linux --class gnu --class linux ($$root)${bootpath}/${kernel_file} ${boot_options} initrd ($$root)${bootpath}/${initrd_file} } +menuentry "Test this media & start ${title}" --class fedora --class gnu-linux --class gnu --class os { + linux ($$root)${bootpath}/${kernel_file} ${boot_options} rd.live.check + 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} -- cgit v1.3.1+13