I use openSUSE Tumbleweed as my primary distribution, and Kali Linux as my secondary distribution in my laptop. I installed Kali Linux first; after that, I installed Tumbleweed which removed Kali Linux's grub and installed its own and added a boot entry for Kali Linux. I am afraid that after a kernel update, Kali Linux will run update-grub which may replace Tumbleweed's Grub with its own. I don't want that to happen, because Tumbleweed made a boot entry that allows me to boot from snapshots.I am running an EFI setup. Will running update-grub from Kali Linux remove Tumbleweed's Grub? If so, how can I prevent it from happening?
How can I prevent update-grub from overwriting existing bootloader?
kali linux;grub2;uefi;boot loader
The new grub2 or (as called in debian package management) grub-pc does update the bootloader if there is some change in the grub-pc package itself. That is to ensure that the binary part of the bootloader inside the /boot/grub directory are matched by the binary (the bootloader) which loads such plug-ins.The correct solution is to configure the kali Linux grub to not update anything.That could be done, as this answer explain with (from inside Kali Linux):sudo dpkg-reconfigure grub-pcThat will remove the updates from Kali linux.Then, reboot to Tumbleweed and make sure it is updating grub. Which, at this point, will be the only one updating the boot loader.