From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UkHPO-0001oo-KM for mharc-grub-devel@gnu.org; Wed, 05 Jun 2013 13:22:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkHPL-0001oY-EP for grub-devel@gnu.org; Wed, 05 Jun 2013 13:22:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkHPK-0006EM-81 for grub-devel@gnu.org; Wed, 05 Jun 2013 13:21:59 -0400 Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:57618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkHPK-0006EC-2Q for grub-devel@gnu.org; Wed, 05 Jun 2013 13:21:58 -0400 Received: by mail-ob0-f178.google.com with SMTP id fb19so3044075obc.37 for ; Wed, 05 Jun 2013 10:21:57 -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=KJ2xjsiHPvqUT98XFeRL+WDN9CbBGE89wglnMNADmO8=; b=U7BROFdEXGYNi8We9KmfLvg7ObJcr3yp5XpiyWu7N2+RLZnI088c8XQ0y8IHU6nIc0 w2yWnRfbyrcDw0B5KHuAwxsZfbF86nXeKvyq84yJqwRwm03gooIwAZUQgal5XveHtbjN 6iZzP4AnpSqd0hTiDX/A//8rtS+cJTTojIzRtSQOg/zX0hE2O02VSaoD30oDm4c8aDl7 zF9Eud9WkNphujBJZccfe9cGV55klSFDKuc0eFZCpE0P2H0Df0Gc9pPyu2NYXfBvnZ45 lx5Iopnam87CQQtVlMXGzxWFTJnpryAkL4kOHDslm9Nd75IVQWAaVCqa47WqKhv0wOVV HZDw== X-Received: by 10.60.59.74 with SMTP id x10mr15334364oeq.48.1370452917575; Wed, 05 Jun 2013 10:21:57 -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 nt17sm53762377obb.13.2013.06.05.10.21.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 10:21:56 -0700 (PDT) Message-ID: <51AF73B2.5070109@gmail.com> Date: Wed, 05 Jun 2013 12:21:54 -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: Mads Kiilerich 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> In-Reply-To: <51AF5FB8.6060101@kiilerich.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:c01::232 Cc: The development of GNU GRUB 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:22:00 -0000 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