Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 2020 20:44:46 +0200
From:      Guido van Rooij <guido@gvr.org>
To:        Kyle Evans <kevans@freebsd.org>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: 12.1p7 no longer boots after doing zpool upgrade -a
Message-ID:  <20200710184446.GA8358@gvr.gvr.org>
In-Reply-To: <20200710182903.GA7412@gvr.gvr.org>
References:  <20200709131201.GA3464@co.gvr.org> <CACNAnaGbCknS18yLv1ow2FFnj5xSMHXQZgxfRPMUMTb5ujB=fw@mail.gmail.com> <20200710182903.GA7412@gvr.gvr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 10, 2020 at 08:29:03PM +0200, Guido van Rooij wrote:
> On Thu, Jul 09, 2020 at 08:24:54AM -0500, Kyle Evans wrote:
> > On Thu, Jul 9, 2020 at 8:12 AM Guido van Rooij <guido@gvr.org> wrote:
> > >
> > > I did a zpool upgrade -a to enable large_dnode and spacemap_v2.
> > > After that, I did:
> > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0
> > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada1
> > > and:
> > > gpart bootcode -p /boot/boot1.efifat -i 1 ada0
> > > gpart bootcode -p /boot/boot1.efifat -i 1 ada1
> > >
> > > Now the system no longer boots from either disk and drops to the efi shell.
> > 
> > This method of updating the ESP is no longer recommended for new 12.x
> > installations -- we now more carefully construct the ESP with an
> > /EFI/FreeBSD/loader.efi where loader.efi is /boot/loader.efi. You will
> > want to rebuild this as such, and that may fix part of your problem.
> 
> Hi Kyle,
> 
> Thnaks for your asnwer. I have not got it to work with that
> configuration. What did work was to replace the  /efi/boot/BOOTx64.efi
> with loader.efi and and change the content of startup.nsh with
> loader.efi. Withoyt the above answer I wouldn't have figure it out
> that quickly so thanks!
> 
> I will investigate further once I have more time (early next week probably).

There was one question I forgot to ask:
Could I have known that my method of updating the ESP was not correct?
If so, where is this documented?

-Guido



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