Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jGS9V-0000yg-MU for mharc-grub-devel@gnu.org; Mon, 23 Mar 2020 14:50:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38158) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGS9T-0000yM-4N for grub-devel@gnu.org; Mon, 23 Mar 2020 14:50:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGS9S-00078l-4w for grub-devel@gnu.org; Mon, 23 Mar 2020 14:50:19 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:41638) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jGS9S-00078H-12 for grub-devel@gnu.org; Mon, 23 Mar 2020 14:50:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584989417; 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=lpWQ4HVhTeUAW6OUyoNNp9nYpxwiteIFUJl3VfkLWMQ=; b=BsXlWzZm4NjjTyvvCNqVRWj+jn2Zrec8NJvSKJXkYFrGAliUSIGTOy1w3SvEZF2/x0bxBR 1et5Oq6t/NkWvmFurY20p6zaFAHbm3++73nlpLMyID/4sp2RCpXfABLPTEWv50ECu2Z5Bk gbruABlNrjaHcXht2uCqLPQqtR3Pypo= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-259-cY_u2bcHO7KPqG3QN7rSWw-1; Mon, 23 Mar 2020 14:50:15 -0400 X-MC-Unique: cY_u2bcHO7KPqG3QN7rSWw-1 Received: by mail-wr1-f72.google.com with SMTP id h14so1652513wrr.12 for ; Mon, 23 Mar 2020 11:50:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lpWQ4HVhTeUAW6OUyoNNp9nYpxwiteIFUJl3VfkLWMQ=; b=tzCpgNrBg/j7efe37vyfQofxWjvgs3FJQvn1ehCQkynqzTWrwPJli2tJyDlOPT9Fc6 HvkziIhOgaXhVtfK3wn4w3lf9/Mkday3vLOBCFVDK3nDnVFRl/JIeb2MXIdcjUsQ4mOq 7o/+Wup6hKMEIZCkNG9yBILSmli/ZpKeUhFxcuppbdvoF/GQXXBfPDLio05kcd38Xwgo PRyY58P9MKScJfvsj0SIhqS/2GoSXQCgJgt4/EvLqyqkcnjmsMx3a9gIzvvHXI9iKvYQ KhLRAwLBN5sGH5OC9o4KwPBDW87nN0lRTmOOqhEJGi6vKmhhjqahpt9zZcovWhr1kRrP La5A== X-Gm-Message-State: ANhLgQ0vLWZuBBE3jCMd+V/hSSohCyiHH4GLAalFxU9ssMtkzdtKVs56 8q84YYTHcFbzk4wRIyRZLD7wNzfW/lBBUMLldjmeyPNJSZ6kRjtVMH8VpFDok3KnkR5vmW2l6EC bSX4t3FBp2QA= X-Received: by 2002:a7b:cb42:: with SMTP id v2mr822789wmj.170.1584989413367; Mon, 23 Mar 2020 11:50:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvGcdA0aodW0rPG+SaVNGoQ7Z6a00roZ6iuo7KzHWWb38F/zYiXqL7yWLm5sM+cfOm5oREVNg== X-Received: by 2002:a7b:cb42:: with SMTP id v2mr822761wmj.170.1584989413059; Mon, 23 Mar 2020 11:50:13 -0700 (PDT) Received: from ?IPv6:2a01:c50f:ab80:6700:527f:85b3:5615:ff0b? ([2a01:c50f:ab80:6700:527f:85b3:5615:ff0b]) by smtp.gmail.com with ESMTPSA id o9sm25403216wrw.20.2020.03.23.11.50.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Mar 2020 11:50:12 -0700 (PDT) Subject: Re: [PATCH] grub.d: Use linuxefi and initrdefi commands if platform is efi To: The development of GNU GRUB , Julian Andres Klode Cc: Tianjia Zhang References: <20200323115315.5941-1-tianjia.zhang@linux.alibaba.com> <20200323183112.qkk6ilppt5iwz6fv@jak-t480s> From: Javier Martinez Canillas Message-ID: Date: Mon, 23 Mar 2020 19:50:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200323183112.qkk6ilppt5iwz6fv@jak-t480s> Content-Language: en-US X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 216.205.24.74 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: Mon, 23 Mar 2020 18:50:20 -0000 On 3/23/20 7:31 PM, Julian Andres Klode wrote: > On Mon, Mar 23, 2020 at 07:26:59PM +0100, Javier Martinez Canillas wrote: >> On 3/23/20 12:53 PM, Tianjia Zhang wrote: >>> When the platform is EFI platform, use 'linuxefi' and 'initrdefi' >>> commands instead of 'linux' and 'initrd'. >>> >> >> These two commands are added by most distros as a part of their Secure Boot >> patch-set, but aren't present in upstream GRUB so this patch doesn't apply. > > I was about to say that at least in Ubuntu, linux automatically loads > via EFI and then falls back to native grub kernel loading if that > does not work (and it's not on secure boot). Which IMO is the right > thing to do. > In Fedora also always 'linux' and 'initrd' is used nowadays. There's no need to have separate linux16, linuxefi and linux commands although these are supported for backward compatibility. Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat