Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2021 23:08:57 +0000
From:      Pete French <petefrench@ingresso.co.uk>
To:        freebsd-stable@freebsd.org
Subject:   Re: FreeBSD 13/stable and zpool upgrade
Message-ID:  <55bec875-e953-a51a-7d09-77a59a4ea5c0@ingresso.co.uk>
In-Reply-To: <YDA76QAbqCn2wnne@over-yonder.net>
References:  <ac735a6b-b82e-36e4-eb66-d2c0d422cc75@lapinbilly.eu> <CANCZdfrm0dpQ6tyggj-VStTz1zTz8wvqZ35ePn5Dc-o66nC4JQ@mail.gmail.com> <YDACWGA4mLKXiuAb@home.opsec.eu> <7c9810fe-6960-0ec7-cab3-2f0c344471f4@lapinbilly.eu> <CANCZdfqHKb2T8LCtLDa5oHBLrkMN7rUwxgCKJ2BH3vQj8yDqQw@mail.gmail.com> <YDAs9x10A6cGmoSx@fc.opsec.eu> <YDA76QAbqCn2wnne@over-yonder.net>

next in thread | previous in thread | raw e-mail | index | archive | help


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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55bec875-e953-a51a-7d09-77a59a4ea5c0>