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@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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"