From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UkIpj-0007Go-Dv for mharc-grub-devel@gnu.org; Wed, 05 Jun 2013 14:53:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkIpg-0007DO-GJ for grub-devel@gnu.org; Wed, 05 Jun 2013 14:53:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkIpe-0007sA-RR for grub-devel@gnu.org; Wed, 05 Jun 2013 14:53:16 -0400 Received: from mail-oa0-x233.google.com ([2607:f8b0:4003:c02::233]:47749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkIpe-0007ro-N6 for grub-devel@gnu.org; Wed, 05 Jun 2013 14:53:14 -0400 Received: by mail-oa0-f51.google.com with SMTP id f4so1445388oah.38 for ; Wed, 05 Jun 2013 11:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=jiuPDWSCqFjbpTytQMjN9IPRwXdWi/bhCGl2JPfocaY=; b=KGTE4pn0HLuxi2DTd09HU426drZiX7S9yR9ggaQPz8RKLdmQ4Jm0FtxlSQna5q98xz JssnMi7vnHcucfgp2+urMC1GPUnFx51nYeyYDR8uO6DU0QteotaOKn7X+jcSGLJRALV2 Gnj0SsSfhg+HOanEXdd/P8TlTghF34Ip0PXpuSFHhCR6nsSQFPIc1+2ZgWfMjIlj7LEy 1DH9kXL8PXrVExIZBe/yLS7PlIaDzgtCKGUqe/fM4jPARhE9YbhEbeSXhWxzoFUuGbBp 1xbxxiJKOMRwfqLkn0KABWqX/KRqHgREK1XPgSpYa8tV2+GrVu3tA2/Llr0ho8l//Stj Fqyg== X-Received: by 10.60.117.232 with SMTP id kh8mr15378900oeb.125.1370458393575; Wed, 05 Jun 2013 11:53:13 -0700 (PDT) Received: from [192.168.0.75] (cpe-70-123-200-41.satx.res.rr.com. [70.123.200.41]) by mx.google.com with ESMTPSA id c20sm56110936oez.4.2013.06.05.11.53.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 11:53:12 -0700 (PDT) Message-ID: <51AF8916.7090503@gmail.com> Date: Wed, 05 Jun 2013 13:53:10 -0500 From: Bruce Dubbs User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120628 Firefox/13.0.1 SeaMonkey/2.10.1 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [RFC] Support for UEFI ESP in os-prober 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> In-Reply-To: <51AF86EE.2040905@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::233 Cc: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= 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 18:53:18 -0000 Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 05.06.2013 19:58, Andrey Borzenkov wrote: >> В Wed, 05 Jun 2013 12:21:54 -0500 >> Bruce Dubbs пишет: >> >>> 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. >> >> grub already has "source" command. >> >>> 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 >>> >> >> Implementing full-fledged globbing in grub is probably overkill; adding >> "source_dir" command looks more doable. Something like >> > We already have globbing. 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. This reminds me of the phrase "perfect is the enemy of good". What percentage of systems rely on network capabilities for booting? >> source_dir --suffix .cfg /boot/grub/grub.d