Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1iPlOq-0004VW-Qt for mharc-grub-devel@gnu.org; Wed, 30 Oct 2019 06:40:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43370) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPlOo-0004TT-GL for grub-devel@gnu.org; Wed, 30 Oct 2019 06:40:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPlOl-0003aJ-Kq for grub-devel@gnu.org; Wed, 30 Oct 2019 06:40:20 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:33763 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iPlOl-0003Ze-GW for grub-devel@gnu.org; Wed, 30 Oct 2019 06:40:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572432018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jjznS5bqNsmzkUJbZhS3bEHOjdlfImYiuwnhjdtvhhU=; b=eZ1fPEL46miyQ6x2R5sliUIIyLGDnl8PjuAU+S4ge164WfBhUUCP30qb4+KbF1hHv6mzb7 yXZvEPxroITBoqSpBC7dA0qYyuw7top54GBT0r8OBNlU+o9sIHPdUfWbhxW/ypraBdm50f DHXhUGeJZk6Yx9f2kOZbk7QsE4b2MpI= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-66-7dm-3PXgN0m6WPMTycbwFg-1; Wed, 30 Oct 2019 06:40:16 -0400 Received: by mail-wr1-f70.google.com with SMTP id t2so1070267wri.18 for ; Wed, 30 Oct 2019 03:40:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dzcaFHpXjTtCl/PTX/lRk9GrCpPryJI1AXlw7Mk6Y0Q=; b=I1T9d1z4BUwAH8TF5ztomfFQ0srbrSoE9sNeAzqsY8f4LjRIm8jSDe1I+9bvlXAfN3 uHi5vPwf0xRBp9XBu6TVC5KDClx5BlBae7rPXfOqgTAXpxbRS8jbHjyrPnSjjnLskw/c IcsrI6Gm7jjwZHGESTkkNB1uQUzRG77fB8bOqGtvTXQ5lxQ3TVMPRtP22DD1yxwAcJFW 9LN2hhBzzMamdNUos8HCNP8eXGy45Oz3AV9fwobBD40xd19kGvahoqL3KZBt8mwo0aDQ Ng1slDWlEm2EEcwViaKSKZOoZ4MdQHVF2AhWQ6R89tC5XekNaHbDLDzDV9Fi9+40jqm/ 6Rbg== X-Gm-Message-State: APjAAAU/EfLtq/mjxuXLTGdKrXydXI6p3z9eMs6e/cMi7TG6EVmr0QeD ZrR3nEj2eqWDCQDzxUsaVihbzUkIEviOFGwqLeNx0eVQpFfKjeT9lXM5bBIPWhyovybrI6/lLaq wXaugBC0OXUg= X-Received: by 2002:adf:e446:: with SMTP id t6mr6048402wrm.7.1572432015663; Wed, 30 Oct 2019 03:40:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqylj0fZnWQaE5DGCRpnZNaJTX/m+JF9PLh2yCWyPJoR9wRy3f8zIv5n/I+dP9gGulXfTJip7A== X-Received: by 2002:adf:e446:: with SMTP id t6mr6048384wrm.7.1572432015452; Wed, 30 Oct 2019 03:40:15 -0700 (PDT) Received: from [192.168.1.13] ([90.168.169.92]) by smtp.gmail.com with ESMTPSA id e9sm1962930wrr.13.2019.10.30.03.40.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Oct 2019 03:40:14 -0700 (PDT) From: Javier Martinez Canillas Subject: Re: [PATCH v5 4/5] normal/main: Search for specific config files for netboot To: Vladimir 'phcoder' Serbinenko Cc: The development of GRUB 2 , Daniel Kiper , Paulo Flabiano Smorigo References: <20191029141612.29488-1-javierm@redhat.com> <20191029141612.29488-5-javierm@redhat.com> Message-ID: <8509c8d0-69f7-f207-e73b-47e666ebc7be@redhat.com> Date: Wed, 30 Oct 2019 11:40:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-MC-Unique: 7dm-3PXgN0m6WPMTycbwFg-1 X-Mimecast-Spam-Score: 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: 205.139.110.120 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2019 10:40:23 -0000 Hello Vladimir, On 10/29/19 5:18 PM, Vladimir 'phcoder' Serbinenko wrote: > What is the problem with main grub.cfg just including the files based on > environment variables? > Do you mean having a grub.cfg that fetches the machine specific grub.cfg? i= .e: configfile (tftp,$net_default_server)/EFI/BOOT/grub.cfg.$net_default_ip While is true that this could be done, is not ideal since then all the logi= c to determine which config file to fetch will have to be encoded into this f= irst stage grub.cfg that will be downloaded by all the machines. This policy will have to be written as a GRUB config script instead of bein= g in the installation server backend, that could just provide the machine specif= ic config files using the suffixes convention introduced by this patch-set. And when managing a big fleet of machines the monolithic approach of having= all this policy in a single grub.cfg file could be hard to maintain and error p= rone. As mentioned in the commit message, others bootloaders already support this= . For example pxelinux and yaboot. So users migrating from pxelinux and yaboot to= GRUB for PXE booting asked for this since they already have built infrastructure= that rely on this feature. We have been carrying these patches since 2012 and our users expect this fe= ature to be available for their network installation environments. I also think t= hat's useful and gives GRUB feature parity with other bootloaders for network boo= ting. Best regards, --=20 Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat