Re: About zfs upgrade
- Reply: Nuno Teixeira : "Re: About zfs upgrade"
- In reply to: Nuno Teixeira : "About zfs upgrade"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Jul 2022 16:17:48 UTC
On 16 Jul 2022, at 18:09, Nuno Teixeira <eduardo@freebsd.org> wrote: > I'm about to upgrade zfs pool and I need to know the command to update boot code on my efi config: > --- > gpart show > => 40 2000409184 nvd0 GPT (954G) > 40 532480 1 efi (260M) > 532520 2008 - free - (1.0M) > 534528 8388608 2 freebsd-swap (4.0G) > 8923136 1991485440 3 freebsd-zfs (950G) > 2000408576 648 - free - (324K) > --- > Handbook says: > gpart bootcode -p /boot/boot1.efifat -i 1 ada1 > > Should I use: > gpart bootcode -p /boot/boot1.efifat -i 1 nvd0p1 ? For gpart, you should specify the base device, i.e. nvd0. The "-i 1" option indicates the partition. In any case, assuming FreeBSD 13 or later, you can just mount the EFI partition and copy loader.efi over: mount -t msdosfs /dev/nvd0p1 /mnt cp /mnt/efi/boot/bootx64.efi /mnt/efi/boot/bootx64.old cp /boot/loader.efi /mnt/efi/boot/bootx64.efi That way you could also revert to bootx64.old if things go wrong. -Dimitry