From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UkIzX-0001G2-7k for mharc-grub-devel@gnu.org; Wed, 05 Jun 2013 15:03:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkIzT-0001Fc-V5 for grub-devel@gnu.org; Wed, 05 Jun 2013 15:03:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkIzS-0002hY-Pq for grub-devel@gnu.org; Wed, 05 Jun 2013 15:03:23 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:40691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkIzS-0002hR-I9 for grub-devel@gnu.org; Wed, 05 Jun 2013 15:03:22 -0400 Received: by mail-lb0-f169.google.com with SMTP id d10so2275955lbj.28 for ; Wed, 05 Jun 2013 12:03:21 -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; bh=k0ho1DxjcCwCgExjNwtZnM/BG+7fpUR1ipmCyYl8Axc=; b=Rnb4OBlvtnnVKCHNtliubcG0ad7pqp3ZEnD9Rm2mR98c27DRZ05Yybd/h715/7IjQI unjWzsToIpqIRy4nb3T/qTsLV+rWb+CI8ZO5uH6frQ+2KjSJGxxIZRqGtUpLy+0t7J3F VoUnXuUzzjjlEuB00gVFE7EtJi9IqR6zfaSmOXSz1DFdRECGvMlIY3Isyj4FH9fYeXi8 rVPB7jv05kJiqdFvs1mVnJTCqBmWiKJPNNpW5EuU4jbDToWX5Mgx0PO4FXB1yg6dQjOP MENnEtIE9Lgi6P06Syd2SSblg0UN8NaPD4CgTTMs4GxoY0PATyDZpzNI7UniNfZl7+RK zPZA== X-Received: by 10.112.63.169 with SMTP id h9mr15688552lbs.135.1370459001572; Wed, 05 Jun 2013 12:03:21 -0700 (PDT) Received: from opensuse.site (ppp79-139-160-84.pppoe.spdop.ru. [79.139.160.84]) by mx.google.com with ESMTPSA id i2sm6424689lah.5.2013.06.05.12.03.20 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 05 Jun 2013 12:03:21 -0700 (PDT) Date: Wed, 5 Jun 2013 23:03:19 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: [RFC] Support for UEFI ESP in os-prober Message-ID: <20130605230319.24d6323b@opensuse.site> In-Reply-To: <51AF86EE.2040905@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> <20130605215815.10b7954b@opensuse.site> <51AF86EE.2040905@gmail.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/0bFRVCVWtEcMsf=2cx/6gzD"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.217.169 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 19:03:25 -0000 --Sig_/0bFRVCVWtEcMsf=2cx/6gzD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Wed, 05 Jun 2013 20:43:58 +0200 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > On 05.06.2013 19:58, Andrey Borzenkov wrote: > > =D0=92 Wed, 05 Jun 2013 12:21:54 -0500 > > Bruce Dubbs =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >=20 > >> 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 ti= me. > >>> > >>> http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/ descri= bes > >>> such a configuration structure, and > >>> http://pkgs.fedoraproject.org/cgit/grub2.git/plain/0362-blscfg-add-bl= scfg-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= =20 > >> had in mind would be the equivalent to the source command in bash. > >=20 > > grub already has "source" command. > >=20 > >> For= =20 > >> 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 > >> > >=20 > > Implementing full-fledged globbing in grub is probably overkill; adding > > "source_dir" command looks more doable. Something like > >=20 > We already have globbing. Ehh .. you mean that for i in /boot/grub/grub.d/*.cfg; do source $i done already works? > Trouble with this approach is that ->dir > method may be slow or (especially on network systems) absent. It should > not be relied upon unless absolutely necessary. > > source_dir --suffix .cfg /boot/grub/grub.d=20 > >=20 > > Any takers? :) > >=20 > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel > >=20 >=20 >=20 --Sig_/0bFRVCVWtEcMsf=2cx/6gzD Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlGvi3cACgkQR6LMutpd94w6bACdEqFbMmmkMSWuNxjjwlOtkCaN t5YAoLyNTOkpjv0dvcLKT0/0qknVeR4Q =y4kj -----END PGP SIGNATURE----- --Sig_/0bFRVCVWtEcMsf=2cx/6gzD--