dvl@
Developer
Hello,
I'm looking for someone with more bootloader knowledge and experience than I have. A plan appears at the end of this post.
I've been updating several FreeBSD 15.0 hosts to 15.1 using
The boot devices are not clearly shown here, as expected (based on https://www.freebsd.org/releases/15.1R/upgrading/#upgrade-loader-uefi)
I also ran some magic mentioned by bsdimp (when I asked about another similar host issue):
That tells me it's booting from \EFI\BOOT\BOOTX64.EFI
I know ada0 and ada1 are my boot drives:
With that in mind, I did this mount and looked around:
That is consistent with what the
With that in mind, my plan is to do the following:
I agree, the second
I'm looking for someone with more bootloader knowledge and experience than I have. A plan appears at the end of this post.
I've been updating several FreeBSD 15.0 hosts to 15.1 using
pkgbase. It concerns an EFI booting host.The boot devices are not clearly shown here, as expected (based on https://www.freebsd.org/releases/15.1R/upgrading/#upgrade-loader-uefi)
Code:
[19:11 r730-01 root ~] # sysctl machdep.bootmethod
machdep.bootmethod: UEFI
[19:11 r730-01 root ~] # efibootmgr -v
BootCurrent: 0000
Timeout : 0 seconds
BootOrder : 0000, 0001
+Boot0000* EFI Fixed Disk Boot Device 1 PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0x4,0x0,0x0)/HD(1,GPT,6e0689af-ca20-11f0-9f70-ecf4bbefc954,0x800,0x64000)
Boot0001 EFI Fixed Disk Boot Device 2 PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0x5,0x0,0x0)/HD(1,GPT,709f19af-ca20-11f0-9f70-ecf4bbefc954,0x800,0x64000)
Unreferenced Variables:
Boot0004* Hard drive C: VenHw(d6c0639f-c705-4eb9-aa4f-5802d8823de6)
Boot0005* IBA GE Slot 0100 v1588 BBS(0x80,IBA GE Slot 0100 v1588,0x0)
I also ran some magic mentioned by bsdimp (when I asked about another similar host issue):
Code:
[19:12 r730-01 root ~] # efivar cfee69ad-a0de-47a9-93a8-f63106f8ae99-LoaderPath --utf8
cfee69ad-a0de-47a9-93a8-f63106f8ae99-LoaderPath
\EFI\BOOT\BOOTX64.EFI
[19:14 r730-01 root ~] # sudo efivar cfee69ad-a0de-47a9-93a8-f63106f8ae99-LoaderDev --utf8
cfee69ad-a0de-47a9-93a8-f63106f8ae99-LoaderDev
PciRoot(0x0)/Pci(0x1F,0x2)/Sata(0x4,0x0,0x0)/HD(1,GPT,6E0689AF-CA20-11F0-9F70-ECF4BBEFC954,0x800,0x64000)
That tells me it's booting from \EFI\BOOT\BOOTX64.EFI
I know ada0 and ada1 are my boot drives:
Code:
[19:19 r730-01 root ~] # zpool status zroot
pool: zroot
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: scrub repaired 0B in 00:00:33 with 0 errors on Thu Jul 16 04:02:31 2026
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gpt/zfs0_20170718AA0000185556 ONLINE 0 0 0
gpt/zfs1_20170719AA1178164201 ONLINE 0 0 0
errors: No known data errors
=> 40 242255584 ada0 GPT (116G)
40 2008 - free - (1004K)
2048 409600 1 efi0_20170718AA0000185556 (200M)
411648 16777216 2 swap0 (8.0G)
17188864 225066760 3 zfs0_20170718AA0000185556 (107G)
=> 40 242255584 ada1 GPT (116G)
40 2008 - free - (1004K)
2048 409600 1 efi1_20170719AA1178164201 (200M)
411648 16777216 2 swap1 (8.0G)
17188864 225066760 3 zfs1_20170719AA1178164201 (107G)
With that in mind, I did this mount and looked around:
Code:
[19:18 r730-01 root ~] # mount_msdosfs /dev/ada0p1 /boot/efi
[19:19 r730-01 root ~] # ls -l /boot/efi
total 16
drwxr-xr-x 1 root wheel 8192 Dec 8 2025 EFI
[19:19 r730-01 root ~] # find /boot/efi
/boot/efi
/boot/efi/EFI
/boot/efi/EFI/BOOT
/boot/efi/EFI/BOOT/BOOTX64.EFI
That is consistent with what the
efivar command output above.With that in mind, my plan is to do the following:
cp /boot/loader.efi /boot/efi/EFI/BOOT/BOOTX64.EFIumount /boot/efimount_msdosfs /dev/ada1p1 /boot/eficp /boot/loader.efi /boot/efi/EFI/BOOT/BOOTX64.EFIumount /boot/efishutdown -r now- profit
I agree, the second
umount[CMD] is not necessary.