2021-01-12 14:33:17 -05:00
|
|
|
#!/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
|
2021-01-20 17:45:05 -05:00
|
|
|
# Arch Vanilla ISO
|
|
|
|
# Project: https://archlinux.org/
|
|
|
|
# Details:
|
2021-01-21 13:27:31 -05:00
|
|
|
# https://wiki.archlinux.org/index.php/Multiboot_USB_drive#Arch_Linux_monthly_release
|
|
|
|
# https://git.archlinux.org/archiso.git/tree/docs/README.bootparams
|
2021-01-12 14:33:17 -05:00
|
|
|
submenu 'Arch Install ISO' {
|
|
|
|
|
|
|
|
menuentry 'Default Options' {
|
2021-01-20 23:55:17 -05:00
|
|
|
load_video
|
|
|
|
insmod gzio
|
|
|
|
insmod part_gpt
|
|
|
|
insmod part_msdos
|
|
|
|
insmod ext2
|
|
|
|
insmod loopback
|
|
|
|
search --no-floppy --fs-uuid {{ disk_uuid }} --set=root
|
2021-01-12 14:33:17 -05:00
|
|
|
set isofile='{{ iso_path }}'
|
2021-01-20 23:55:17 -05:00
|
|
|
set imgdevpath="/dev/disk/by-uuid/{{ disk_uuid }}"
|
2021-01-20 04:33:51 -05:00
|
|
|
loopback loop (${root})/${isofile}
|
2021-01-21 11:34:06 -05:00
|
|
|
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
|
2021-01-12 14:33:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
menuentry 'Accessibility mode' {
|
2021-01-20 23:55:17 -05:00
|
|
|
load_video
|
|
|
|
insmod gzio
|
|
|
|
insmod part_gpt
|
|
|
|
insmod part_msdos
|
|
|
|
insmod ext2
|
|
|
|
insmod loopback
|
|
|
|
search --no-floppy --fs-uuid {{ disk_uuid }} --set=root
|
2021-01-12 14:33:17 -05:00
|
|
|
set isofile='{{ iso_path }}'
|
2021-01-20 23:55:17 -05:00
|
|
|
set imgdevpath="/dev/disk/by-uuid/{{ disk_uuid }}"
|
2021-01-20 04:33:51 -05:00
|
|
|
loopback loop (${root})/${isofile}
|
2021-01-21 11:34:06 -05:00
|
|
|
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
|
2021-01-12 14:33:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|