From nobody Tue Aug 18 06:51:30 2026 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hPL2z4xMVz6ndGF for ; Tue, 18 Aug 2026 06:51:39 +0000 (UTC) (envelope-from ronald.pagani.jr@opentechpartners.com) Received: from sender6-of-o55.zoho.com (sender6-of-o55.zoho.com [165.173.180.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4hPL2y4rcZz3bdT for ; Tue, 18 Aug 2026 06:51:38 +0000 (UTC) (envelope-from ronald.pagani.jr@opentechpartners.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=opentechpartners.com header.s=sfo header.b=h82f+scb; arc=pass ("zohomail.com:s=zohoarc:i=1"); spf=pass (mx1.freebsd.org: domain of ronald.pagani.jr@opentechpartners.com designates 165.173.180.55 as permitted sender) smtp.mailfrom=ronald.pagani.jr@opentechpartners.com; dmarc=pass (policy=quarantine) header.from=opentechpartners.com ARC-Seal: i=1; a=rsa-sha256; t=1787035891; cv=none; d=zohomail.com; s=zohoarc; b=mMHvedLA0jXgBxmCbYv6AT8luvTQ4iiSfrhxs6v0E1ZuE2bgyNb9t3d2K4mkYrYoAOtJnde0QyPD8A9L3wnPV43BPNeQ5A+v0TCSJNuU6Z3EsS5KEhM68y1XfYHb1MWFeMAdLLkkme4usF/Kd4pjQ2J6UUdLozhPedV3d5pE+Ao= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1787035891; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=RPzS2Ku6QuC79gAtJ2ovH/GfYVUSl9/1KCVVlPQ92YU=; b=D/K3vqteuIpafBbU8/lyvCIhXuSCj7a166PwofXCJsdbbmbMsGXLzDqvNMP3tzS/Bd3VmQ8VXI7mLWWqmO3MwXeDJ1OAuHPNtQ5HN9OLLC+Fye+HsHKhoPT/bBluxezDBlfkKeKATx8dxFuArxxdC6IxWoKcEl5H0x9TvjTxd7g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=opentechpartners.com; spf=pass smtp.mailfrom=ronald.pagani.jr@opentechpartners.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1787035891; s=sfo; d=opentechpartners.com; i=ronald.pagani.jr@opentechpartners.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-Id:Message-Id:In-Reply-To:Subject:Subject:MIME-Version:Content-Type:Reply-To; bh=RPzS2Ku6QuC79gAtJ2ovH/GfYVUSl9/1KCVVlPQ92YU=; b=h82f+scbPDyLlBDcR/ZQFG9Ys4aaEFifKSUlx4v3k1wprXj792tNeHrDZ+uPU53w lY1wosN/NZwTLEc1TTWZaCXtDCpv+NXnM08Lx8HEKei9B6OXsj6GA4JLzbAgq2R42bB EokkLJdm2vHemHNL7cB6PwrFJlbIBV/Rpm2qgQ+M= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1787035891506452.52828258344243; Mon, 17 Aug 2026 23:51:31 -0700 (PDT) Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1787035890546732.4453784080546; Mon, 17 Aug 2026 23:51:30 -0700 (PDT) Date: Mon, 17 Aug 2026 23:51:30 -0700 From: "Ronald Pagani Jr." To: "Warner Losh" Cc: "freebsd-hackers" Message-Id: <1a013a3b35d.3751ed48961663.2045442671097328987@opentechpartners.com> In-Reply-To: <19bd4f1e98a.4a7f9e06368239.2893210969084391844@opentechpartners.com> References: <00F5D3B4-B03B-4E08-BA3C-9950691D490A@opentechpartners.com> <19a5b7c3e08.5b99f535439430.8874459704557361480@opentechpartners.com> <19bd4f1e98a.4a7f9e06368239.2893210969084391844@opentechpartners.com> Subject: Proposing a fix to EFI loader auto upgrade List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2130418_1594021903.1787035890525" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spamd-Result: default: False [-4.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ARC_ALLOW(-1.00)[zohomail.com:s=zohoarc:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.978]; DMARC_POLICY_ALLOW(-0.50)[opentechpartners.com,quarantine]; R_DKIM_ALLOW(-0.20)[opentechpartners.com:s=sfo]; R_SPF_ALLOW(-0.20)[+ip4:165.173.180.0/24:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:2639, ipnet:165.173.180.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@FreeBSD.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[opentechpartners.com:+] X-Rspamd-Queue-Id: 4hPL2y4rcZz3bdT X-Spamd-Bar: ---- ------=_Part_2130418_1594021903.1787035890525 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Warner, I've been wanting to find a path to seeing this resolved and I have a propo= sed patch for the EFI loader auto upgrade. =C2=A0I did get some help from C= laude Code, and I've got a test suite, as well, I've tested on the FreeBSD = 14 box I was offering earlier for testing and it worked great. I found=C2=A0D45890 for adding a warning, and I would like to offer a fix f= or this issue. =C2=A0My configuration is=C2=A0FreeBSD 14.0-p11 on amd64 wit= h UEFI on ZFS. =C2=A0My proposed fix isn't limited to my specific configura= tion. Would it make sense to open a review for my proposed fix? I've got an account request on reviews.freebsd.org pending (ronald.pagani.j= r@dev.us.com), and for now, I'm looking to hear your thoughts on next steps= . Best, Ron Open Technology Partners, LLC=C2=A0 |=C2=A0 ron@opentechpartners.com=C2=A0 = |=C2=A0 415.583.9497 /mobile=C2=A0 |=C2=A0 408.515.2769 x32 /office This email sent with the=C2=A0Inclusive Sans font. Find out more here:=C2= =A0 https://fonts.google.com/specimen/Inclusive+Sans=20 =C2=A0 =C2=A0 From: Ronald Pagani Jr. To: "Warner Losh" Date: Sun, 18 Jan 2026 22:29:42 -0800 Subject: Re: Warner, great to meet // zroot test EFI loader auto upgrade Happy New Year Warner, When we chatted at the FreeBSD Vendor Summit, I think you mentioned you had= a script in mind for users with only one boot partition (like me), to auto= mate the simple case and upgrade boot loader.=C2=A0 I'm still very much up = for trying it out (unless it was merged already and I just have been out to= lunch). I'm still sitting at 14.0 p11 as the test candidate, and wanted to be avail= able to help with automating this upgrade path.=C2=A0 Let me know if there'= s something I can help with. # efibootmgr -v Boot to FW : false BootCurrent: 0004 Timeout=C2=A0=C2=A0=C2=A0 : 1 seconds BootOrder=C2=A0 : 0004, 0002, 0003, 0000 +Boot0004* UEFI : Samsung SSD 970 EVO 500GB : PART 0 : OS Bootloader PciRoo= t(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/NVMe(0x1,3a-1a-50-01-51-38-25-00)/HD(1,GP= T,228044d9-1bc1-11eb-924d-1c697a6048c3,0x28,0x64000) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 VenHw(2d6447ef-3bc9-41a0-ac19-4d51d01b4ce6,5300= 61006d00730075006e006700200053005300440020003900370030002000450056004f00200= 0350030003000470042000000) Boot0002* UEFI : LAN : PXE IP4 Intel(R) Ethernet Connection (6) I219-V PciR= oot(0x0)/Pci(0x1f,0x6)/MAC(1c697a6048c3,0x0)/IPv4(0.0.0.0,0x0,DHCP,0.0.0.0,= 0.0.0.0,0.0.0.0) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 VenHw(2d6447ef-3bc9-41a0-ac19= -4d51d01b4ce6,5000580045002000490050003400200049006e00740065006c00280052002= 9002000450074006800650072006e0065007400200043006f006e006e006500630074006900= 6f006e002000280036002900200049003200310039002d0056000000) Boot0003* UEFI : LAN : PXE IP6 Intel(R) Ethernet Connection (6) I219-V PciR= oot(0x0)/Pci(0x1f,0x6)/MAC(1c697a6048c3,0x0)/IPv6(0000:0000:0000:0000:0000:= 0000:0000:0000,0x0,Static,0000:0000:0000:0000:0000:0000:0000:0000,0x40,0000= :0000:0000:0000:0000:0000:0000:0000) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 VenHw(2d6447ef-3bc9-41a0-ac19= -4d51d01b4ce6,5000580045002000490050003600200049006e00740065006c00280052002= 9002000450074006800650072006e0065007400200043006f006e006e006500630074006900= 6f006e002000280036002900200049003200310039002d0056000000) Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 HD(1,GPT,8046efd4-c078-4da5-a3d0-24c3888f52d= 2,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi) Unreferenced Variables: (Related to:=C2=A0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D2798= 29 ) Best, Ron From: Ronald Pagani Jr. < mailto:ronald.pagani.jr@opentechpartners.com > To: "Warner Losh"< mailto:imp@freebsd.org > Date: Thu, 06 Nov 2025 15:24:20 -0800 Subject: Re: Warner, great to meet // zroot test EFI loader auto upgrade My bad -- 14.0-RELEASE-p11 FreeBSD 14.0-RELEASE-p11 #0: Wed Sep 18 23:01:59 UTC 2024= =C2=A0=C2=A0=C2=A0=C2=A0 mailto:root@amd64-builder.daemonology.net :/usr/ob= j/usr/src/amd64.amd64/sys/GENERIC amd64 ---- On Thu, 06 Nov 2025 15:08:47 -0800 Ronald Pagani Jr. < mailto:ronald.p= agani.jr@opentechpartners.com > wrote --- Warner, Here's the mail you might be expecting :-) Again, great chatting today and I'm interested to test auto upgrade for the= EFI bootloader. I think we figured out I start these systems sometime in 12-RELEASE, and go= t snagged on trying to upgrade from 14.1-RELEASE. Best, Ron (Sent from mobile, please excuse grammatical errors) Best Regards, Ronald Pagani Jr., Principal Open Technology Partners, LLC mailto:ron@opentechpartners.com=20 =C2=A0/mobile =C2=A0x32 /office https://www.linkedin.com/in/ronaldp1/=20 Correspondence may be delivered to: PO Box 3346, Redwood City, CA, 94064-3346 ------=_Part_2130418_1594021903.1787035890525 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
Warner,

I've been wantin= g to find a path to seeing this resolved and I have a proposed patch for th= e EFI loader auto upgrade.  I did get some help from Claude Code, and = I've got a test suite, as well, I've tested on the FreeBSD 14 box I was off= ering earlier for testing and it worked great.

I found D45890 for adding a warning, and I would like to offer a fix = for this issue.  My configuration is FreeBSD 14.0-p11 on amd64 wi= th UEFI on ZFS.  My proposed fix isn't limited to my specific configur= ation.

Would it make sense to open a review fo= r my proposed fix?

I've got an account request on = reviews.freebsd.org pending (ronald.pagani.jr@dev.us.com), and for now, I'm= looking to hear your thoughts on next steps.

= Best,
Ron

Open Technology Partners, LLC&n= bsp; |  ron@opentechpartners.com  |  415.583.9497 /mobile&nb= sp; |  408.515.2769 x32 /office

Thi= s email sent with the Inclusive Sans font. Find out more here: https://fonts.google.com/sp= ecimen/Inclusive+Sans
 
 

=

From: Ronald Pagani Jr. <ronald.pag= ani.jr@opentechpartners.com>
To: "Warner Losh"<imp@freebsd.org>=
Date: Sun, 18 Jan 2026 22:29:42 -0800
Subject: Re: Warner, great to = meet // zroot test EFI loader auto upgrade

Happy New Year Warner= ,

When we chatted at the FreeBSD Vendor Summit= , I think you mentioned you had a script in mind for users with only one bo= ot partition (like me), to automate the simple case and upgrade boot loader= .  I'm still very much up for trying it out (unless it was merged alre= ady and I just have been out to lunch).

I'm st= ill sitting at 14.0 p11 as the test candidate, and wanted to be available t= o help with automating this upgrade path.  Let me know if there's some= thing I can help with.

# efibootmg= r -v
Boot to FW : false
BootCurrent: 0004
Timeout&n= bsp;   : 1 seconds
BootOrder&nbs= p; : 0004, 0002, 0003, 0000
+Boot0004* UEF= I : Samsung SSD 970 EVO 500GB : PART 0 : OS Bootloader PciRoot(0x0)/Pci(0x1= d,0x0)/Pci(0x0,0x0)/NVMe(0x1,3a-1a-50-01-51-38-25-00)/HD(1,GPT,228044d9-1bc= 1-11eb-924d-1c697a6048c3,0x28,0x64000)
&nb= sp;            =             &nb= sp;            =             &nb= sp;            =      VenHw(2d6447ef-3bc9-41a0-ac19-4d51d01b4ce6,5300610= 06d00730075006e006700200053005300440020003900370030002000450056004f00200035= 0030003000470042000000)
Boot0002* UEFI : L= AN : PXE IP4 Intel(R) Ethernet Connection (6) I219-V PciRoot(0x0)/Pci(0x1f,= 0x6)/MAC(1c697a6048c3,0x0)/IPv4(0.0.0.0,0x0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0)
       &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p; VenHw(2d6447ef-3bc9-41a0-ac19-4d51d01b4ce6,50005800450020004900500034002= 00049006e00740065006c002800520029002000450074006800650072006e00650074002000= 43006f006e006e0065006300740069006f006e0020002800360029002000490032003100390= 02d0056000000)
Boot0003* UEFI : LAN : PXE = IP6 Intel(R) Ethernet Connection (6) I219-V PciRoot(0x0)/Pci(0x1f,0x6)/MAC(= 1c697a6048c3,0x0)/IPv6(0000:0000:0000:0000:0000:0000:0000:0000,0x0,Static,0= 000:0000:0000:0000:0000:0000:0000:0000,0x40,0000:0000:0000:0000:0000:0000:0= 000:0000)
     &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;   VenHw(2d6447ef-3bc9-41a0-ac19-4d51d01b4ce6,500058004500200049= 0050003600200049006e00740065006c002800520029002000450074006800650072006e006= 5007400200043006f006e006e0065006300740069006f006e00200028003600290020004900= 3200310039002d0056000000)
Boot0000* Wind= ows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
         &n= bsp;            = ;         HD(1,GPT,8046efd4-c078-4d= a5-a3d0-24c3888f52d2,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)<= br>


Unreferenced Variables:

=


Best,
Ron




=
From: Ronald Pagani Jr. <= = ronald.pagani.jr@opentechpartners.com>
To: "Warner Losh"<imp@freebsd.org>
= Date: Thu, 06 Nov 2025 15:24:20 -0800
Subject: Re: Warner, great to meet= // zroot test EFI loader auto upgrade

My bad --

14.0-RELEASE-p11 FreeBSD 14.0-RELEASE-p11 #0: We= d Sep 18 23:01:59 UTC 2024     root@amd64-builder.daemonol= ogy.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

<= div>
---- On Thu, 06 Nov 2025= 15:08:47 -0800 Ronald Pagani Jr. <ronald.pagani.jr@opentechpartners.= com> wrote ---

Warner,

=
Here's the mail you might = be expecting :-)

Again, great chatting today = and I'm interested to test auto upgrade for the EFI bootloader.

I think we figured out I start these systems sometime in= 12-RELEASE, and got snagged on trying to upgrade from 14.1-RELEASE.

Best,
Ron
<= br>
(Sent from mobile, please excuse grammatical errors)<= /span>


= Best Regards,
Ronald Pagan= i Jr., Principal
Open Technology Part= ners, LLC
408.515.2769 x32 /office

Correspondence may be delivered to:
PO Box 3346, Redwood City, CA, 94064-334= 6




=
------=_Part_2130418_1594021903.1787035890525--