Diffstat (limited to 'grub-arm.cfg.iso-template')
| -rw-r--r-- | grub-arm.cfg.iso-template | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/grub-arm.cfg.iso-template b/grub-arm.cfg.iso-template new file mode 100644 index 0000000..447a1f3 --- /dev/null +++ b/grub-arm.cfg.iso-template @@ -0,0 +1,50 @@ +# Inspired by the config used for lorax-built live media + +set default="1" + +function load_video { + insmod efi_gop + insmod efi_uga + insmod video_bochs + insmod video_cirrus + insmod all_video +} +set basicgfx="nomodeset" + +load_video +set gfxpayload=keep +insmod gzio +insmod part_gpt +insmod ext2 +insmod zstd + +terminal_input console +terminal_output ${terminal_output} + +set timeout=${boot_timeout} +set timeout_style=${boot_timeout_style} + +search ${search_params} + +# Surface Pro 12" (Snapdragon X1P-42-100): the dtb the entries below load is a +# plain file in this same loader directory on the ISO9660 filesystem. GRUB +# cannot read the erofs root image, and kiwi has no device tree support, so +# surface-editbootconfig.sh copies it there out of the kernel-surface RPM in the +# image root. See that script for why editbootconfig is the hook that can. +menuentry "Start ${title}" --class fedora --class gnu-linux --class gnu --class os { + devicetree ($$root)${bootpath}/x1p42100-microsoft-sp12in.dtb + 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 { + devicetree ($$root)${bootpath}/x1p42100-microsoft-sp12in.dtb + 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 { + devicetree ($$root)${bootpath}/x1p42100-microsoft-sp12in.dtb + linux ($$root)${bootpath}/${kernel_file} ${boot_options} $${basicgfx} + initrd ($$root)${bootpath}/${initrd_file} + } +} |