Is there a way to install ArchLabs using Grub2's 40_custom file?

Hello, I would like to install ArchLabs linux via Grub2’s 40_custom file, located at /etc/grub.d/40_custom.

I understand that I need to use a menuentry, however I am not sure what parameters to use in the entry, and I was hoping someone would have experience with this and know how to help. I do not own any removable media for installation. I am using Ubuntu 18.10 Cosmic Cuttlefish.

This works:

menuentry “archlabs” --class dvd {
set isofile="/ISO/archlabs-2018-05.iso"
set dri=“free”
search --no-floppy -f --set=root $isofile
probe -u $root --set=abc
set pqr="/dev/disk/by-uuid/$abc"
loopback loop $isofile
linux (loop)/arch/boot/x86_64/vmlinuz img_dev=$pqr img_loop=$isofile driver=$dri
initrd (loop)/arch/boot/x86_64/archiso.img
}

Replace ISO with your location.

1 Like