diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2023-01-22 19:29:11 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2023-01-22 19:29:11 +0100 |
commit | 9c990fca729353b9076cf109e732fd2a55573d81 (patch) | |
tree | 45d95155eacad886c1fc70d2e3d8edea61ad7376 /grub | |
parent | a3600e528b02f8ba965ec3fac46f681088bf8338 (diff) |
2023 update
Diffstat (limited to 'grub')
-rw-r--r-- | grub/grub.cfg | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/grub/grub.cfg b/grub/grub.cfg new file mode 100644 index 0000000..d2aa4ab --- /dev/null +++ b/grub/grub.cfg @@ -0,0 +1,36 @@ +# Load partition table and file system modules +insmod part_gpt +insmod part_msdos +insmod fat +insmod iso9660 + +# Use graphics-mode output +insmod all_video +insmod font +if loadfont "${prefix}/fonts/unicode.pf2" ; then + insmod gfxterm + set gfxmode="auto" + terminal_input console + terminal_output gfxterm +fi + +# Enable serial console +if serial --unit=0 --speed=115200; then + terminal_input --append serial + terminal_output --append serial +fi + +# Set default menu entry +default=archlinux +timeout=15 +timeout_style=menu + + +# Menu entries + +menuentry "Arch Linux (x86_64, UEFI)" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' { + set gfxpayload=keep + search --no-floppy --set=root --label %ARCHISO_LABEL% + linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% + initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img +} |