Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2021 14:49:26 -0600
From:      Greg Rivers <gcr+freebsd-stable@tharned.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: FreeBSD 13/stable and zpool upgrade
Message-ID:  <2027600.x0N0T6uNKo@no.place.like.home>
In-Reply-To: <YDACWGA4mLKXiuAb@home.opsec.eu>
References:  <ac735a6b-b82e-36e4-eb66-d2c0d422cc75@lapinbilly.eu> <CANCZdfrm0dpQ6tyggj-VStTz1zTz8wvqZ35ePn5Dc-o66nC4JQ@mail.gmail.com> <YDACWGA4mLKXiuAb@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, 19 February 2021 12:24:24 CST Kurt Jaeger wrote:
> > > Unfortunately it contains an old version of the boot loader:
> [...]
> > We should be better about upgrading boot blocks, but EFI is kinda new and
> > kinda different than the other out-of-root-filesystem boot blocks we've had
> > in the past, so there's still some rough edges.
> 
> We run many systems at remote sites. If we can't remotely upgrade
> without drama from 12.x to 13.x, that would be a catastrophe.
> 
> Any chance this can be fixed before 13.0-REL ?
> 
Informed by reading the bsdinstall(8) scripts, I've been creating my own boot1.efifat thusly:

#!/usr/bin/env sh
TMPDIR=/mnt
rm -f /boot/boot1.efifat
newfs_msdos -F 32 -c 1 -L EFISYS -C 200m /boot/boot1.efifat
MD=$(mdconfig -f /boot/boot1.efifat)
mount -t msdosfs /dev/${MD} ${TMPDIR}
mkdir -p ${TMPDIR}/efi/boot ${TMPDIR}/efi/freebsd
cp -a /boot/loader.efi ${TMPDIR}/efi/boot/bootx64.efi
cp -a /boot/loader.efi ${TMPDIR}/efi/freebsd/
umount ${TMPDIR}
mdconfig -d -u ${MD}

Then I use `gpart bootcode -p /boot/boot1.efifat ...` as usual.

To avoid confusion and errors, I think a proper boot1.efifat should be put back into the base system so that people don't have to track the above recipe (which is likely to change).

-- 
Greg





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2027600.x0N0T6uNKo>