aboutsummaryrefslogtreecommitdiff
path: root/grub.cfg.iso-template
diff options
from:
to:
context:
space:
mode:
authorGravatar Neal Gompa <ngompa@fedoraproject.org> 2023-10-14 15:21:23 -0400
committerGravatar Neal Gompa <ngompa@fedoraproject.org> 2023-10-14 15:21:23 -0400
commit838cd9b2eef8e210a46a51b0cd77dfee5d595635 (patch)
tree0fabc7fe6f90aaedc77d338c62414b4005cf7f29 /grub.cfg.iso-template
parent14e2f2a0e1b4cca43e00d4f354be04378e1e78b0 (diff)
downloadkiwi-descriptions-838cd9b2eef8e210a46a51b0cd77dfee5d595635.tar.gz
kiwi-descriptions-838cd9b2eef8e210a46a51b0cd77dfee5d595635.zip
Initial import of descriptions
Diffstat (limited to 'grub.cfg.iso-template')
-rw-r--r--grub.cfg.iso-template44
1 files changed, 44 insertions, 0 deletions
diff --git a/grub.cfg.iso-template b/grub.cfg.iso-template
new file mode 100644
index 0000000..b0f6aee
--- /dev/null
+++ b/grub.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_setup}
+
+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}
+ }
+}