LWN.net Logo

Poettering: systemd for Administrators, Part VIII

Poettering: systemd for Administrators, Part VIII

Posted Apr 21, 2011 15:40 UTC (Thu) by mathstuf (subscriber, #69389)
In reply to: Poettering: systemd for Administrators, Part VIII by gurulabs
Parent article: Poettering: systemd for Administrators, Part VIII

> Hopefully when GRUB 2 is finally released/adopted widely all distros will use grub.cfg instead of the grub.conf/menu.lst frivolous incompatibility.

What I would like to see is for GRUB is per-install configuration files. Ubuntu manages ubuntu-sda1.conf, Fedora manages fedora-sda2.conf, a different Fedora install manages fedora-sda3.conf. There would be an base grub.conf file which would be used to manage defaults and such.

Currently (IME), dual booting a distro against itself causes them both to get confused as to which is actually setting defaults and managing entries in grub.conf. Besides the fact that if one dual boots Ubuntu with Fedora, which one wins with the formatting? I know Ubuntu does some crazy magic comment lines to help with this.

Unless there is a standard set of tools for managing the configuration file (removing kernel entries when they're uninstalled, adding new entries, etc.), distros will tend to try and make grub.conf look like what makes it easier for their own tools. Maybe grub.cfg will fix this (just skimmed the wiki page), but it looks as if it will have similar issues.

Should probably put this to the GRUB developers.


(Log in to post comments)

Grub stuff

Posted Apr 21, 2011 16:19 UTC (Thu) by utoddl (subscriber, #1232) [Link]

I finally made an out-of-distro grub install on each of my boxes. All it does is let you pick which distro's grub you want to chainload. This way each distro can do whatever it wants with it's own grub. I add a "return to master bootmenu" to each, and I haven't looked back. Very much worth the trouble, and not really that much trouble to start with.

Grub stuff

Posted Apr 21, 2011 17:58 UTC (Thu) by mathstuf (subscriber, #69389) [Link]

That does sound a lot nicer. I'll have to remember this when I set up new boxes. Thanks.

Grub stuff

Posted May 3, 2011 13:40 UTC (Tue) by bronson (subscriber, #4806) [Link]

This sounds awesome. How does one set up an out-of-distro grub? Google turns up nothing.

Poettering: systemd for Administrators, Part VIII

Posted Apr 23, 2011 16:15 UTC (Sat) by Wol (guest, #4433) [Link]

I dual boot gentoo and SuSE.

SuSE uses some fancy commenting too - it knows what I added for gentoo and doesn't touch it.

But again, I can imagine it getting thoroughly confused if I tried to run two different SuSEs.

Cheers,
Wol

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds