From owner-freebsd-arch@freebsd.org Mon Mar 25 00:32:17 2019 Return-Path: Delivered-To: freebsd-arch@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 F230F154A6C1 for ; Mon, 25 Mar 2019 00:32:16 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D82556F255 for ; Mon, 25 Mar 2019 00:32:15 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 98326154A6BB; Mon, 25 Mar 2019 00:32:15 +0000 (UTC) Delivered-To: arch@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 6ED8F154A6BA; Mon, 25 Mar 2019 00:32:15 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4E196F250; Mon, 25 Mar 2019 00:32:14 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-oi1-x229.google.com with SMTP id t206so5634749oib.3; Sun, 24 Mar 2019 17:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3EmgJR6FIuqg2wxDs0+7sNzkmfnDmv1Fc0k0+TqsnOY=; b=cf7Jb4yoitUOSVMLFGsDwTenTD3KIyfeDrzibnFKrVK2n2P4spYgWidVJvEVv0hCPY H8Ocu/ev6CUeC4HBEMc+wy5G7C4Ubp0moGp+rVhmexD5rRxmeBCGiP3Xw2ksJyi6Badw ojgHOTeJCtmrq6MrA9hrLsk32a2AO+fXTGdN90sNqP8t9OX+qDfaagSzrlwKYCRtHBge 5Syg+WSsUyLN4JrhkLwAztk8/09jVWkajnhGHhBgCnC3ZFlVjzGp0Wn2iJRl32hW/ndK U4AzfOO/zNjuB1S9fvBCm0XNeA9QqgOk663/aET+K1RijpSUunWjsZE9KuRkz5lBtTXW wrbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3EmgJR6FIuqg2wxDs0+7sNzkmfnDmv1Fc0k0+TqsnOY=; b=sHQtr0zPnMHrDMJzX2QViDgnpiFYKh10ZKdqrPadMRNE65oa8n1BSN+SlZ8txwu6t2 7u+JND4O0+JMi8YPWIgTv/PZlf4lPYbC7u7VvSaZfugoP7pOpbpNm5Gt/l0FwQOVm0eF KTUTddvTmm42FA+ymVoOxLdKbMqGC93lm78AkdZv/sJeuRM2aWgZJpRzG8PRGrAOFRNX BGjxFDyHWV6pf2Vzz78wby4snCbvB3nW6BCUWcAefXoiQD5DdqrCdMlB4ULkA4qoF5us TFSli4ab2QHLTJibvmZ0HFwtIesaiOuwf2Llw8CJ5xkgAIExNc8VHsbAq90P/o0L6DTJ xDRw== X-Gm-Message-State: APjAAAXo8C1aOPatG96MZVqjnxQi+JdDG/iWG62FOHK9iGLjU3SZiCHr mN86zH4kopJO+4ak66lF4aYQ/9Qd X-Google-Smtp-Source: APXvYqz+HdBjBLom83EdE308E29M6Jws+/4LFW30fe6rhHirQXBH49wgFrnRT95m0yj1ChL0lScEcg== X-Received: by 2002:aca:eb93:: with SMTP id j141mr9908318oih.178.1553473934005; Sun, 24 Mar 2019 17:32:14 -0700 (PDT) Received: from [100.168.146.207] ([172.56.6.99]) by smtp.gmail.com with ESMTPSA id e17sm5769609otp.41.2019.03.24.17.32.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Mar 2019 17:32:13 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: Adding a new efi-update-loader script: need help understanding Makefile.inc1 for "make installworld" From: Enji Cooper X-Mailer: iPhone Mail (16D57) In-Reply-To: <5cda4bb9-c10e-2b44-65db-5a9f29f498d8@bluestop.org> Date: Sun, 24 Mar 2019 17:32:10 -0700 Cc: Warner Losh , Konstantin Belousov , FreeBSD Hackers , "freebsd-arch@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <642fed43-0535-9ae3-6f01-a943650cd511@bluestop.org> <20190324090103.GO1923@kib.kiev.ua> <5cda4bb9-c10e-2b44-65db-5a9f29f498d8@bluestop.org> To: Rebecca Cran X-Rspamd-Queue-Id: E4E196F250 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Mar 2019 00:32:17 -0000 > On Mar 24, 2019, at 17:20, Rebecca Cran via freebsd-hackers wrote: >=20 >> On 3/24/19 5:57 PM, Warner Losh wrote: >>=20 >>=20 >> He's asking for stopping doing a make install in src/stand. I'm thinking t= hat's a good thing. We should update the ESP's \efi\freebsd\loader.efi, but l= eave the\efi\boot\bootXXXX.efi alone as part of this new installloader phase= . Again, only if the ESP is mounted, and we have a default spot for it. For t= his script, I don't think hunting for the ESP is the right way to go... whic= h means we need to define a standard place for the ESP to be mounted, which w= e should do before we turn on any of these features. >>=20 >> We have the start of a generic script to update things in src/tools/boot/= install-boot.sh which was supposed to install boot blocks on everything know= n to run FreeBSD. >=20 >=20 > Only updating \efi\freebsd\loader.efi is the wrong thing to do in my opini= on: there are situations like on ARM where EFI variables aren't persistent, a= nd we need \efi\boot\bootxxxx.efi for booting. What we could do is check if Q= ueryVariableInfo returns EFI_UNSUPPORTED, in which case we know any changes t= o BootXXXX variables won't survive a reboot, and we need BOOTxxxx.efi. >=20 > Is it safe to assume there's only a single ESP in the system? Is it not no= rmal for there to be one ESP per disk for mirrored configurations, in which c= ase each would need to be updated? >=20 > Do you envision src/tools/boot/install-boot.sh moving to /usr/sbin, or rem= aining where it is? We'd also need to update the ESP for binary installs usi= ng freebsd-update. I was wondering about builds from scratch, as well=E2=80=94images comple= tely lacking boot blocks like Jenkins builds. Thanks! -Enji=