Can't get Mint's grub to boot EndeavourOS

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

This or this might help. Which distro did you install first?

Mint first then Endeavour
Endeavour doesn’t have a bootloader installed since I already have Mint’s grub

Okay here’s the exact error:

error: file '/boot/vmlinuz-linux-lts' not found.
error: you need to load the kernel first

Press any key to continue... (returns to grub)

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.

The kernel exists
Looking at a reference entry for endeavour looks like os-prober’s is incomplete let me try updating it

Check in the /boot folder for the Kernel image files. I am pretty confident dracut doesn’t separate vmlinuz and initramfs by default.

I just said the kernel does exist

Why bother creating a manual entry ? As long as Mints and Endeavour OS images are in the same directory, just run grub-update from Mint.

I suspect dev sda7 is your root partition ?

Mint’s is /dev/sda6 and Endeavour’s is /dev/sda7
I’m making a manual entry because os-prober’s is missing half the config

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.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.