So general info:
I’m dual booted with Linux Mint and EndeavourOS (and Windows but that’s irrelevant)
Mint is my main distro and Endeavour is for tinkering
Endeavour does not have a bootloader installed
As Mint is my main distro I’d prefer to use its grub over Endeavour’s
Both Endeavour and Mint are on ext4 partitions
I’ve tried running sudo update-grub but with Endeavour’s partition unmounted os-prober can’t find it by default and after mounting so os-prober can find it trying to boot through grub complains about the kernel not being loaded
Here’s the entry in grub.cfg
menuentry 'EndeavourOS Linux (rolling) (on /dev/sda7)' --class endeavouros --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-/dev/sda7' {
insmod part_gpt
linux /boot/vmlinuz-linux-lts root=/dev/sda7
initrd /boot/initramfs-linux-lts.img
}
submenu 'Advanced options for EndeavourOS Linux (rolling) (on /dev/sda7)' $menuentry_id_option 'osprober-gnulinux-advanced-/dev/sda7' {
menuentry 'EndeavourOS Linux (rolling) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux-lts--/dev/sda7' {
insmod part_gpt
linux /boot/vmlinuz-linux-lts root=/dev/sda7
initrd /boot/initramfs-linux-lts.img
}
menuentry 'EndeavourOS Linux (rolling) (on /dev/sda7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--/dev/sda7' {
insmod part_gpt
linux /boot/vmlinuz-linux root=/dev/sda7
initrd /boot/initramfs-linux.img
}
}
I do want to note that I could boot it before, but it broke after a reinstall
Install mkinitcpio and reinstall the kernel with this command:sudo pacman -S mkinitcpio && sudo pacman -S linux-lts linux-lts-headers then reboot. Now it should boot fine. State your EFI partition mount point please.
It is way further easier to let endeavourOS control the boot with grub as Mint doesn’t play nice with arch based distro’s. This requires the bootloader to be installed on endeavour as well as os-prober and uncomment the line in /etc/default/grub
It makes absolutely no difference that Mint is your main distro. You can set it to boot first even though endeavour is controlling the boot process.