grub-devel
[Top][All Lists]
Advanced

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

Re: [RFC] Support for UEFI ESP in os-prober


From: Bruce Dubbs
Subject: Re: [RFC] Support for UEFI ESP in os-prober
Date: Wed, 05 Jun 2013 12:21:54 -0500
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120628 Firefox/13.0.1 SeaMonkey/2.10.1

Mads Kiilerich wrote:
On 05/31/2013 07:03 PM, Bruce Dubbs wrote:
Vladimir 'φ-coder/phcoder' Serbinenko wrote:

I must say I'm generally disappointed with os-prober and have
ideas to move away from it. I'll start another topic for it.

I agree.  I would prefer adding an include command so grub.cfg could
just do something like:

include /boot/grub/grub.d/*.cfg

and have an install procedure drop in one or more menu items instead
of every os install or update rewriting the entire grub.cfg every time.

http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/ describes
such a configuration structure, and
http://pkgs.fedoraproject.org/cgit/grub2.git/plain/0362-blscfg-add-blscfg-module-to-parse-Boot-Loader-Specif.patch
implements it as a grub command.

Although that's a good start, it seems a little too specific. What I had in mind would be the equivalent to the source command in bash. For example,

if condition; then
  include (hd0,3)/grub/custom/themes/themeA.cfg
else
  include (hd0,2)/boot/grub/themes/themeB.cfg
fi

# Get menuentries
include /boot/grub/grub.d/*.cfg

I have no preference to the keyword.  Either include or source would work.

  -- Bruce



reply via email to

[Prev in Thread] Current Thread [Next in Thread]