Proposing a fix to EFI loader auto upgrade
"Ronald Pagani Jr." <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.hackers |
|---|---|
| Message-ID | <1a013a3b35d.3751ed48961663.2045442671097328987@opentechpartners.com> |
Warner, I've been wanting to find a path to seeing this resolved and I have a proposed patch for the 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 offering 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 with UEFI on ZFS. My proposed fix isn't limited to my specific configuration. Would it make sense to open a review for my proposed fix? I've got an account request on reviews.freebsd.org pending ([email protected]), and for now, I'm looking to hear your thoughts on next steps. Best, Ron Open Technology Partners, LLC | [email protected] | 415.583.9497 /mobile | 408.515.2769 x32 /office This email sent with the Inclusive Sans font. Find out more here: https://fonts.google.com/specimen/Inclusive+Sans From: Ronald Pagani Jr. <[email protected]> To: "Warner Losh"<[email protected]> 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 automate the simple case and upgrade boot loader. 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 available to help with automating this upgrade path. Let me know if there's something I can help with. # efibootmgr -v Boot to FW : false BootCurrent: 0004 Timeout : 1 seconds BootOrder : 0004, 0002, 0003, 0000 +Boot0004* UEFI : Samsung SSD 970 EVO 500GB : PART 0 : OS Bootloader PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/NVMe(0x1,3a-1a-50-01-51-38-25-00)/HD(1,GPT,228044d9-1bc1-11eb-924d-1c697a6048c3,0x28,0x64000) VenHw(2d6447ef-3bc9-41a0-ac19-4d51d01b4ce6,530061006d00730075006e006700200053005300440020003900370030002000450056004f002000350030003000470042000000) Boot0002* UEFI : LAN : 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) VenHw(2d6447ef-3bc9-41a0-ac19-4d51d01b4ce6,5000580045002000490050003400200049006e00740065006c002800520029002000450074006800650072006e0065007400200043006f006e006e0065006300740069006f006e002000280036002900200049003200310039002d0056000000) 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,0000:0000:0000:0000:0000:0000:0000:0000,0x40,0000:0000:0000:0000:0000:0000:0000:0000) VenHw(2d6447ef-3bc9-41a0-ac19-4d51d01b4ce6,5000580045002000490050003600200049006e00740065006c002800520029002000450074006800650072006e0065007400200043006f006e006e0065006300740069006f006e002000280036002900200049003200310039002d0056000000) Boot0000* Windows Boot Manager VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb) HD(1,GPT,8046efd4-c078-4da5-a3d0-24c3888f52d2,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi) Unreferenced Variables: (Related to: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279829 ) Best, Ron From: Ronald Pagani Jr. < mailto:[email protected] > To: "Warner Losh"< mailto:[email protected] > 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 mailto:[email protected] :/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 ---- On Thu, 06 Nov 2025 15:08:47 -0800 Ronald Pagani Jr. < mailto:[email protected] > 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 (Sent from mobile, please excuse grammatical errors) Best Regards, Ronald Pagani Jr., Principal Open Technology Partners, LLC mailto:[email protected] /mobile x32 /office https://www.linkedin.com/in/ronaldp1/ Correspondence may be delivered to: PO Box 3346, Redwood City, CA, 94064-3346