FreeBSD 13/stable and zpool upgrade

Pete French petefrench at ingresso.co.uk
Fri Feb 19 23:09:07 UTC 2021



On 19/02/2021 22:30, Matthew D. Fuller wrote:

> e.g., on one system BIOS-booting system, /boot/rewrite-bootcode.sh:
> 
> ----------------------------------
> #!/bin/sh -x
> for i in /dev/nda0 /dev/nda1; do
> 	gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ${i}
> done
> ----------------------------------

Ah, that made me smile....

FreeBSD 12.2-STABLE stable/12-c243191-g079273384c2 GENERIC
[pete at skerry ~]$ cat /root/update_boot_blocks
#!/bin/sh
for DRIVE in ada0 ada1 ada2 ada3
do
     /sbin/gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ${DRIVE}
done

I suspect there are many variants on this out there! :-)

-pete.


More information about the freebsd-stable mailing list