I have a fedora + manjaro installation. Although grub2 shows all the boot options, but when manjaro is selected it gives the infamous kernel panic:
kernel panic-not syncing: VFS:unable to mount root fs on unknown block(0,0)
After going though several arch forums I found that if I press e at the grub2 and edit the last line of manjaro boot sequence from
initrdefi /boot/intel-ucode.img /boot/initramfs-4.9-x86_64.img
It boots into manjaro.
Naturally, I opened fedora, did a
grub2-update to get the grub.cfg file and made the required changes in it, but those changes are not getting reflected into the grub2 boot screen (i.e I have to manually add
/boot/initramfs-4.9-x86_64.img to boot into manjaro, otherwise it gives a kernal panic)
How would I make the changes in the grub.cfg permanent?
Additionally, I read somewhere that we should not make changes to grub.cfg as it'll change if the kernal is upgraded. What's the best course of action here?