Hello forum.
So, a few weeks ago I updated my Latitude5400 from 13.3 to 14.1. A couple of days later I discovered (by running
Doing some research I found out that I should have updated the bootcode. So my next step was to boot a live system and try to update the bootcode from there. So reading the handbook I found this:
My setup is EFI+ZFS (on root with encryption), so I tried the second command without any luck. My system don't have /boot/boot1.efifat.
Went back to the Cyberspace to look for more clues, and found this comment:
"Ok, now I have a proper path to follow" the innocent old me. listing my efi boot entries with
I tried to activate the boot entry using almost every flag combination in efibootmgr(8) without any luck, every time I rebooted, the boot entry was gone in the boot menu.
At this point I just wanted my system back no matter what. So in the live system, I mounted my home pool, made a new snapshot, sent a differential diff to my backup server and reinstalled FBSD using the 14.1 ISO. Then imported my last BE and home snapshots from my backups.
After a few minutes I had my system back and fully upgraded. But I still don't know how to upgrade the bootcode. And now it is the backup server turn to be upgraded. I already upgraded from 13.3 to 14.0 and from 14.0 to 14.1. System and ports are complete up to date. The only thing missing is the bootcode and zpool upgrade.
Can someone ELI5 how it is the correct way to do it, please?
So, a few weeks ago I updated my Latitude5400 from 13.3 to 14.1. A couple of days later I discovered (by running
# zpool status
) that my zroot pool had a upgrade available. Like a ignorant f..ker I just ran # zpool upgrade zroot
expecting that would be the only thing I needed to do. After a couple of "power downs and power ups" later the system gets unbootable (IDK why it booted a couple of times before stoped).Doing some research I found out that I should have updated the bootcode. So my next step was to boot a live system and try to update the bootcode from there. So reading the handbook I found this:
My setup is EFI+ZFS (on root with encryption), so I tried the second command without any luck. My system don't have /boot/boot1.efifat.
Went back to the Cyberspace to look for more clues, and found this comment:
That took me to this part of the 13.0-release notes:For the future: <https://www.freebsd.org/releases/13.0R/relnotes/#boot> the note about not using gpart(8).
"Ok, now I have a proper path to follow" the innocent old me. listing my efi boot entries with
# efibootmgr -v
I notice that the FBSD boot entry was there, BUT it was in the "Unreferenced Variables" section and it had a "(null)" field in the end, something like this (Simulation of the output because I don't have any image):
Code:
Boot to FW : false
BootCurrent: 0003
Timeout : 0 seconds
BootOrder : 0003, 0004
+Boot0003* Onboard NIC(IPV4) PciRoot(0x0)/Pci(0x1f,0x6)/MAC(3448ed433a7f,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,490050003400200049006e00740065006c002800520029002000450074006800650072006e0065007400200043006f006e006e0065006300740069006f006e002000280034002900200049003200310039002d004c004d000000)
Boot0004* Onboard NIC(IPV6) PciRoot(0x0)/Pci(0x1f,0x6)/MAC(3448ed433a7f,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,490050003600200049006e00740065006c002800520029002000450074006800650072006e0065007400200043006f006e006e0065006300740069006f006e002000280034002900200049003200310039002d004c004d000000)
Unreferenced Variables:
Boot0006* FreeBSD HD(1,GPT,33e94826-4e83-11ef-ad1b-3448ed433a7f,0x28,0x82000)/File(\efi\freebsd\loader.efi)
gpt/efiboot0:/efi/freebsd/loader.efi /boot/efi//efi/freebsd/loader.efi (null)
I tried to activate the boot entry using almost every flag combination in efibootmgr(8) without any luck, every time I rebooted, the boot entry was gone in the boot menu.
At this point I just wanted my system back no matter what. So in the live system, I mounted my home pool, made a new snapshot, sent a differential diff to my backup server and reinstalled FBSD using the 14.1 ISO. Then imported my last BE and home snapshots from my backups.
After a few minutes I had my system back and fully upgraded. But I still don't know how to upgrade the bootcode. And now it is the backup server turn to be upgraded. I already upgraded from 13.3 to 14.0 and from 14.0 to 14.1. System and ports are complete up to date. The only thing missing is the bootcode and zpool upgrade.
Can someone ELI5 how it is the correct way to do it, please?