I tried to install recently EndeavourOS, but for no reason, auto installer (on any OS) fail at installing grub, i tried to modify files in /usr/lib/calamares/modules/bootloader/main.py, but during installation it looks like it goes back to normal making it impossible to modify. I would like to know if there is a way to modify it so i can add a flag to grub install, so it doesn’t bug?
yes kinda tried to modify that calamares script to add the line i needed, but everytime it rollback to normal one. And i don’t know what happens after grub install (on the installer) since i fail at this part.
When triying to install arch/other os, had the same problems and looks like just adding this flag (–removable) works
that file was never tested and is not used yet, calamares in fact uses its original file from main.py.
What you can try is to edit main.py by the content of main.py_add_recheck_remove_efi_directory
That file need trials and errors in the code to see if calamares can handle the arch way to install grub. (it was my original idea, but real life takes too much time)
From experience, it’s the only way i found to install grub on my computer. There is maybe other solutions but with —removable flags it’s usually how i make things done
without the removable flag one of the options work?
If not, main.py can be “hacked” but will take more time to test.
Please notice that grub is the very last part installed using calamares, so if the install fails you can manually mount your partitions, chrooting and install grub following arch instructions. Then just unmount and reboot your system, should work.
This command had success when used by @pudge: grub-install --target=x86_64-efi --bootloader-id=grub-efi --recheck
@ArKrant I have the same m.2 drive and i have installed EndeavourOS with dual boot Windows 10. Currently i have Windows 10 only installed on the m.2 drive and Endeavour on an SSD drive with EFI partition on both. I previously had Endeavour installed with Windows 10 on the m.2 drive on it’s own partition using only one EFI partition in the Windows partition. I have no issues installing it. I find with calamares it does not always like to overwrite the partition scheme. It is better to always create a new GPT partition which will delete all partitions. Then use erase disc with or with out swap. It has no issue installing grub if the flag is et /boot/efi and select the proper drive.
Are you just installing it only on the m.2 drive by itself?
After the install (even if crash) i guess calamares should umount the disk.
If not i’d recommend you to umount and mount to /mnt which is sort of standard for archlinux. Then remember to arch-chroot to /mnt and install with a command like described before.
*remember to arch-chroot otherwise you’d be trying to install grub at the live environment.
I haven’t asked before how experienced you’re with arch/linux, if you need more detailed instructions let us know than we can detail more.