Of course not. This is not the purpose of grub-mkconfig. Its only purpose is to generate a config file for the GRUB instance installed by the distribution it is run on.Isakku wrote:If grub-mkconfig were to set Manjaro's GRUB as the default in the machine it would work, but it didn't
Yes it is. Only grub-install (NOT grub-mkconfig) can install a GRUB bootloader and overwrite the boot loader previously installed in the same location.Isakku wrote:Whatever command the Debian updates ran it was not grub-install
At least the version available in Debian stable does not handle properly current versions of GRUB 2.x. But I have seen reports from bootinfoscript (I don't remember which version, but it was newer than Debian's) which contain the correct information about the /boot location.bw123 wrote:bootinfoscript is broken.
But it is far from showing as much information as bootinfoscript. I was specifically looking for Manjaro's and Debian's grub.cfg to try to understand what is wrong.bw123 wrote:Another way to get the info is hit 'c' at the grub menu, then type 'set' and look for 'prefix' and that should? tell you what partition the core.img is looking for
Manjaro's grub.cfg contains the following initrd line :
Code: Select all
initrd /boot/intel-ucode.img /boot/initramfs-4.14-x86_64.img
Code: Select all
initrd /boot/intel-ucode.img
You do not have to run Manjaro or chroot anything. You can run grub-install with --boot-directory to specify the /boot location.Isakku wrote:I guess I will run Manjaro in a live session, mount the drive where it is installed and do something like in Arch (I imagine there is an equivalent to arch-chroot and run grub-install
Your request "remove Debian's GRUB" was ambiguous. I first thought you meant to erase the GRUB boot loader installed by Debian's grub-install. Just installing Manjaro's GRUB in the same location does this. But I understand now that you want to uninstall grub* packages. All you need to do to prevent Debian updates from overwriting the installed boot loader is to remove the package grub-pc. Note that is will also remove scripts which automatically update Debian's grub.cfg when a kernel is installed or removed (which Manjaro's grub-mkconfig relies upon to add proper menu entries for Debian in Manjaro's grub.cfg).Isakku wrote:how the heck do you remove Debian's GRUB? All of you have said that as if it were a matter of runningCode: Select all
sudo apt-get autoremove grub
Code: Select all
apt-get remove grub-pc