On Mon, Jun 4, 2012 at 1:40 PM, morlix <mor...@morlix.de> wrote: > Hello, > > does anybody of you know how to get the grub2-mkconfig script to > correctly detect initramfs and set the kernel parameter "root=" to > /dev/ram0 or just don't set the parameter at all. > > I'm using genkernel and want to use my generated initramfs, but > everytime grub2-mkconfig gets called it sets the kernel parameter root= > to my root partition and then the initramfs won't get used. > > I think manually editing /boot/grub2/grub.cfg and deleting the root= > parameter and setting real_root isn't a good choice for long term.
The default scripts for grub2-mkconfig looks for a specific filename for the initramfs, related to the kernel filename. If you look in those scripts, you may be able to modify it to look at your filenames instead.