From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UkHye-0001U4-2S for mharc-grub-devel@gnu.org; Wed, 05 Jun 2013 13:58:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkHyY-0001Td-E9 for grub-devel@gnu.org; Wed, 05 Jun 2013 13:58:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkHyT-0004Qj-JB for grub-devel@gnu.org; Wed, 05 Jun 2013 13:58:22 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:63919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkHyT-0004Qb-DU for grub-devel@gnu.org; Wed, 05 Jun 2013 13:58:17 -0400 Received: by mail-lb0-f177.google.com with SMTP id 10so1762059lbf.22 for ; Wed, 05 Jun 2013 10:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=YvHegem9ndfeq/PbByn73XVj5XGsVtKztTHxk+sYKes=; b=nS7Ik3hy8hy0OggrqV7iyqrdkNo+OKDIx9H6+DECcxNw3xPq1n6BR/gsHVnILg782N MTv7SgEVtYSP154tQvzn8vVT+stkbtNFx9g6uLuwxc4uReFCaQGSfrw/II8949o8qMla AINATBKP4cgDPvR5u02aH/4TBXlvSGh5OqZ7eRlgzXgBVcOA372LdDTqo+KnZTN3KWRq hJo01uVi/h/sGyeG4ulpz79kdS83yoJT+7HHgo0mSleWOQqcnlEunH6XB+1Y4iAHZSLl mSAfICUi6wTJXap8efACUDGI3C4K6oDKBTzK/8pPWPU+DoV53aAGQ6lu/lJW8Y6ARsrR 80XQ== X-Received: by 10.152.4.137 with SMTP id k9mr5538899lak.11.1370455096283; Wed, 05 Jun 2013 10:58:16 -0700 (PDT) Received: from opensuse.site (ppp79-139-160-84.pppoe.spdop.ru. [79.139.160.84]) by mx.google.com with ESMTPSA id x5sm592073lbx.8.2013.06.05.10.58.15 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 05 Jun 2013 10:58:15 -0700 (PDT) Date: Wed, 5 Jun 2013 21:58:15 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: [RFC] Support for UEFI ESP in os-prober Message-ID: <20130605215815.10b7954b@opensuse.site> In-Reply-To: <51AF73B2.5070109@gmail.com> References: <1348931070.2008.14.camel@opensuse.site> <20130531184843.235759e8@opensuse.site> <51A8CC08.8060303@gmail.com> <51A8D7E6.8030501@gmail.com> <51AF5FB8.6060101@kiilerich.com> <51AF73B2.5070109@gmail.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.217.177 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2013 17:58:27 -0000 =D0=92 Wed, 05 Jun 2013 12:21:54 -0500 Bruce Dubbs =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Mads Kiilerich wrote: > > On 05/31/2013 07:03 PM, Bruce Dubbs wrote: > >> Vladimir '=CF=86-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-blsc= fg-module-to-parse-Boot-Loader-Specif.patch > > implements it as a grub command. >=20 > Although that's a good start, it seems a little too specific. What I=20 > had in mind would be the equivalent to the source command in bash. grub already has "source" command. > For=20 > example, >=20 > if condition; then > include (hd0,3)/grub/custom/themes/themeA.cfg > else > include (hd0,2)/boot/grub/themes/themeB.cfg > fi >=20 > # Get menuentries > include /boot/grub/grub.d/*.cfg >=20 Implementing full-fledged globbing in grub is probably overkill; adding "source_dir" command looks more doable. Something like source_dir --suffix .cfg /boot/grub/grub.d=20 Any takers? :)