From owner-freebsd-hackers@freebsd.org Thu Dec 17 19:02:24 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BB75E4C0C7A for ; Thu, 17 Dec 2020 19:02:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CxhFX3G0Yz4bng for ; Thu, 17 Dec 2020 19:02:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 6FCA74C09BA; Thu, 17 Dec 2020 19:02:24 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6F9034C0BF6 for ; Thu, 17 Dec 2020 19:02:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CxhFX2PW9z4byc for ; Thu, 17 Dec 2020 19:02:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x829.google.com with SMTP id z3so20842516qtw.9 for ; Thu, 17 Dec 2020 11:02:24 -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=Cuo48uKRPSaRg2xv81q4ZnMFxv2mIFrUyT1vY1p/5FU=; b=roLDx41YiA4QsGJl5YOroxFamh30gdiSq9BUMAcllF8IheVCi/Bw3m1S+6G0PxQwIr 2y4iT0DL7cl0ZEhRHVlUbd2gow/jx4ajEPsfaWr/dfMAejZOfab+dmvTiut8fmZaixzE YPQdvc+kdLVcyzYxNd7Jypdx0na6gTQzkJkh734Y5tQiIIkwFgMZlW5YP4tl+Avn8Ugi YkQGFzgG+CdbPXLwFCpHc/g9b91DD+HYFA5O4Cb6WGyWN13IYInSKupRWpGS5ANf5V6E 8mIm8BAv0S4vKe3Yq1tpBPLAMTg8e4zcIXfwbn5oU25inXU7hmUkNm+SWw8O9CR8V0pz 1rCg== 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=Cuo48uKRPSaRg2xv81q4ZnMFxv2mIFrUyT1vY1p/5FU=; b=TmGjQDTrYxdROWS4dnoP9TapHijsj0BtRqU5ld2Jc+49vxDP+YuLUaKcZz6jrL0464 uRYeZ0obyw8VZJOociI3L9R3GapdiYhvWcOxPKng2mZcJIn1YbpM4b1zZa+hNmuxwidY JFGta5YaMM1ZRLs7L3RkZpULslF9JjqXpilshXGz0+sYUjYqROvLahWzbnd048MYPSeO 4k7ouU65CrI8OvIOZEKTcJ3RtxJt+9jrSIi6x7p82dFDFgZ876VNaGnp1BIUL0Lv9hNp V1pMXhJQb6iGJ/ouRHfpWT6dMIo8RF8HOGIOSQhl/vA8MGFs2e848l7fLj0YYkvY+Y3U jKqQ== X-Gm-Message-State: AOAM5317srvrCDvEmqW1tn3xtV66NxDm1OIsWglQOMz0dGK1Xr2aecJK yQPJ79Qye0pSxhKycI/6MXZdHcSZ5C7Gj5bmX+kBP4XPTi15YQ== X-Google-Smtp-Source: ABdhPJxssCi2VMLRV7npAWnlRMqBMsqIbxWrYpkjq28usII08cl6H/fu9DOi1ovYkaKkRezsnUULrga/EGd0N0qsvxY= X-Received: by 2002:ac8:58d2:: with SMTP id u18mr160473qta.235.1608231743255; Thu, 17 Dec 2020 11:02:23 -0800 (PST) MIME-Version: 1.0 References: <25469.1608040822@critter.freebsd.dk> <26111.1608051101@critter.freebsd.dk> <63257157-9cdd-0da4-f061-4005319514c2@FreeBSD.org> <62922.1608231126@critter.freebsd.dk> In-Reply-To: <62922.1608231126@critter.freebsd.dk> From: Warner Losh Date: Thu, 17 Dec 2020 12:02:12 -0700 Message-ID: Subject: Re: Should/does loader.efi respect the "bootme" GPT attribute ? To: Poul-Henning Kamp Cc: Lev Serebryakov , "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 4CxhFX2PW9z4byc X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2020 19:02:24 -0000 On Thu, Dec 17, 2020 at 11:52 AM Poul-Henning Kamp wrote: > -------- > Warner Losh writes: > > > > > UEFI has its own bootnext protocol, that works in conjunction with > the EFI > > > > environment variables to have a more robust, less 'guess what I > mean' > > > > approach. So all in all, it's hard, non-standard and doesn't play > well with > > > > UEFI." > > > > > > Could it be used here? > > > > > > > Yes. It can. > > Do you know of any good sources of documentation ? > Chapter 3 of the UEFI spec has the canonical reference for the Boot Manager specification. If your mobo understands setting persistent UEFI variables, that's the most robust way to do things. There's not a FreeBSD document, though efibootmgr comes closest and would be what you'd use to manage... Warner