From owner-freebsd-current@freebsd.org Sun Nov 4 22:56:38 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DAF0810F035E for ; Sun, 4 Nov 2018 22:56:37 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it1-x12e.google.com (mail-it1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 199DF8BD3E for ; Sun, 4 Nov 2018 22:56:37 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it1-x12e.google.com with SMTP id d6so10251450itl.4 for ; Sun, 04 Nov 2018 14:56:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5e7r1Rmy3SzQgAl0//AWrEN32fiTKLHVBTVzvVU381U=; b=qNgG7OjdaEt/9/QfsTD5f+ZccKp8wpTaBpmMTm7AvMuWKpHmA9f3RX8i2o4/6NpU7n QuZwUussZAKGwey5qonJte43uybC3HETbX4Ji88+jbeOYzt742ARZH5PrS321VGws7vH KAQKGqIvTZkJ5LZEIwfWw723qNnn7/kmCz7AGCLREfmV4cgEx1f+TgOt/rPEI6s/JxVN wkUEN6b8Zk0+EQ10ljWJ1iWT/ofvWgv+3W2BuKJ8278S8Suc8gEEFuDCBA6vDsvrRiUS oMvSkOJrexST9gsXRbW601h58EerSZKWKNwqfwm/UBqXS8gkcPLh3A64sjiE3+XfRLDH miIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5e7r1Rmy3SzQgAl0//AWrEN32fiTKLHVBTVzvVU381U=; b=aLdA7WsqaOAZFvSpsqgA/+tw57b1yvqvt3NzuVYU1wOVMKC2i7lgNkWchJmL/A2+YD TGf3UtB/KLE8mPEVBpFrH4X/ogZaGSV/IfGfSrYSaKFOBLATikWSyvz0oBMQVTjP6Cr/ 2/SMM0SqebUOpIUO3+ZiTDWar57Hu2c7OnomaHnTylUpp11jr5xz2XdeWmSPgI6OGdSK NKessCeeXpbPzDwzRb0Q9D+HJ1ccEelXBN60zQeaERbH6BobUV2hYxWJlTyLKz4IvhHl x/TCyOXUgIyD8mrqSczpc8DJ6rh1bFUEbAZ0lJa4DMPo1InMEKft8TawDf+Ne2BaAcmZ nJvQ== X-Gm-Message-State: AGRZ1gJDHCgt+ttZdpZ4AXsXPxagVHwohhiiO4Na/+rwQyt32ysaY/Bi CN53d/ZIgyStYWmZvNGBzDK412PAN9wkiNC0q1ud3Q== X-Google-Smtp-Source: AJdET5eM398/6c3mSA48uWqryAYnEnvDwJMsBeDT0tmIo8mOUVMKfJprOyN2E4mgHFoRG6AtP5d/HARZMfJ42TO57YE= X-Received: by 2002:a02:31d:: with SMTP id y29-v6mr18645289jad.98.1541372196343; Sun, 04 Nov 2018 14:56:36 -0800 (PST) MIME-Version: 1.0 References: <5091656.8gLySxXtyI@photon.int.bluestop.org> <1713323.u6MfGjpqfb@photon.int.bluestop.org> In-Reply-To: <1713323.u6MfGjpqfb@photon.int.bluestop.org> From: Warner Losh Date: Sun, 4 Nov 2018 15:56:25 -0700 Message-ID: Subject: Re: UEFI: How to go about updating the ESP with loader.efi during installworld To: Rebecca Cran Cc: FreeBSD Current , Toomas Soome X-Rspamd-Queue-Id: 199DF8BD3E X-Spamd-Result: default: False [-0.51 / 200.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[e.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.23)[-0.229,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.28)[ipnet: 2607:f8b0::/32(-0.07), asn: 15169(-1.24), country: US(-0.07)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2018 22:56:38 -0000 On Sun, Nov 4, 2018 at 2:43 PM Rebecca Cran wrote: > On Sunday, 4 November 2018 14:36:13 MST Toomas Soome wrote: > > > it is reasonable to have efi/freebsd directory, the efi/boot/bootx64.efi > is > > hard one of course. But then again, it is problem only when we can not > > setup EFI bootmanager variables ? the bootx64.efi is default when bootmgr > > is not set up. > > Yes, I think we should only create efi/boot/boot{x64,ia32,aa64,arm}.efi if > it > doesn't already exist in which case we're likely the only OS on the system. > I think that's a really really bad idea. We should *NEVER* create them by default. We are only sliding by on the coat-tails of compatibility by using efi/boot/boot*.efi. We shouldn't use those at all, unless there's a compelling reason (like BIOS bogosity) for doing so. I had no plans to update or use those, at least by default. We should *ONLY* be using those for *REMOVABLE* media, since that's the only place they are well defined in the standard. We should only create files in efi/freebsd and using efibootmgr(8) to point at those. That was my end-goal and it was how to get there that tripped me up and got me distracted from finishing things up. Now, if people want to also create those files, to work around bogus BIOS interpretations of the standard[*], that's fine. We shouldn't preclude that. We maybe should have a script to do it even, but we shouldn't do it by default. We should assume that things can be done the right way and only enable fallbacks on an opt-in basis (and likely not part of installworld, though I can see it is a tempting idea). Warner [*] I'm looking at you Supermicro