27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
|
#!/bin/sh
|
||
|
# Copy this file to /etc/grub.d/40_custom_arch with mode 0755 and run grub-mkconfig -o /boot/grub/grub.cfg
|
||
|
exec tail -n +3 $0
|
||
|
# Arch ISO
|
||
|
# https://wiki.archlinux.org/index.php/Multiboot_USB_drive#Arch_Linux_monthly_release
|
||
|
submenu 'Arch Install ISO' {
|
||
|
|
||
|
menuentry 'Default Options' {
|
||
|
set isofile='{{ iso_path }}'
|
||
|
probe -u $root --set=imgdevuuid
|
||
|
set imgdevpath="/dev/disk/by-uuid/$imgdevuuid"
|
||
|
loopback loop $isofile
|
||
|
linux (loop)/arch/boot/x86_64/vmlinuz-linux archisobasedir=arch img_dev=$imgdevpath img_loop=$isofile earlymodules=loop
|
||
|
initrd (loop)/arch/boot/intel-ucode.img (loop)/arch/boot/amd-ucode.img (loop)/arch/boot/x86_64/initramfs-linux.img
|
||
|
}
|
||
|
|
||
|
menuentry 'Accessibility mode' {
|
||
|
set isofile='{{ iso_path }}'
|
||
|
probe -u $root --set=imgdevuuid
|
||
|
set imgdevpath="/dev/disk/by-uuid/$imgdevuuid"
|
||
|
loopback loop $isofile
|
||
|
linux (loop)/arch/boot/x86_64/vmlinuz-linux archisobasedir=arch img_dev=$imgdevpath img_loop=$isofile earlymodules=loop accessibility=on
|
||
|
initrd (loop)/arch/boot/intel-ucode.img (loop)/arch/boot/amd-ucode.img (loop)/arch/boot/x86_64/initramfs-linux.img
|
||
|
}
|
||
|
|
||
|
}
|