Re: grub2-mkconfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



And even *better* would be to disable 30_os-prober, and instead of
copy pasting corrected grub2-mkconfig output into
/etc/grub.d/40_custom, would be to create menuentries using the
configfile command that point to the real grub.cfg for each distro on
your system. That way you use that distro's grub..cfg specifically,
rather than the generic Fedora 21 grub-mkconfig produced one.

For example, you can take the /etc/grub.d/30_os-prober output for all
the Fedora 16 "Verne" entries, and turn them only into one entry:


menuentry 'Fedora release 16 (Verne) (on /dev/sdb6)' --class gnu-linux
--class gnu --class os $menuentry_id_option
'osprober-gnulinux-simple-98ed0361-1d1c-4062-9f75-dff4630c7f2a' {
insmod part_msdos
insmod ext2
set root='hd1,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6
--hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6
--hint='hd1,msdos6'  98ed0361-1d1c-4062-9f75-dff4630c7f2a
else
 search --no-floppy --fs-uuid --set=root 98ed0361-1d1c-4062-9f75-dff4630c7f2a
fi
configfile /boot/grub2/grub.cfg
}

So that single entry points to the Fedora 16 grub.cfg, which will show
its kernels in a separate menu. But instead of having the (likely
wrong) boot parameters based on Fedora 21, it will have the Fedora 16
boot parameters.

This is really what grub-mkconfig should be doing by default, but for
some reason creating whole new frequently malformed boot entries from
scratch is upstream's idea of multibooting...

Chris Murphy
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux