Re: Updating EFI boot loader results in boot hangup

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Fri, 12 Aug 2022 20:25:33 UTC
The problem is if boot is failing, how to mount and rename it?

I'm looking for a way, if possible, to boot directly bkp boot64x in case of
failure.
I was hoping to find it in loader(8) or uefi(8)...

Larry Rosenman <ler@lerctr.org> escreveu no dia sexta, 12/08/2022 à(s)
21:09:

> I would assume just rename the bootx64.old to bootx64.efi
>
> and/or put it in a different directory that EFI can see
>
>
> On 08/12/2022 3:03 pm, Nuno Teixeira wrote:
>
> I'm searching without success to load a bkp loader in case of boot failure.
>
> Upgrade process willl be like:
> ---
> mount -t msdosfs /dev/nvd0p1 /mnt
> cp /mnt/efi/boot/bootx64.efi /mnt/efi/boot/bootx64.old
> cp /boot/loader.efi /mnt/efi/boot/bootx64.efi
> ---
>
> I can't find the right docs to load bootx64.old.
> Could you tell me what you did to solve your boot?
>
> Thanks
>
> Yasuhiro Kimura <yasu@freebsd.org> escreveu no dia sexta, 12/08/2022 à(s)
> 18:45:
>
> From: Nuno Teixeira <eduardo@freebsd.org>
> Subject: Re: Updating EFI boot loader results in boot hangup
> Date: Fri, 12 Aug 2022 18:26:11 +0100
>
> > Hello Yasu,
> >
> > Does it needes to update boot loader everytime that we upgrade current?
>
> No, you need not.
>
> > The only time that I updated was a month ago because of zfs upgrade and
> I need to practice how to boot
> > loader bkp file :)
>
> I update boot loader everytime because I'd like to do it :-).
> And sometimes problem hits upon me like this time and I contribute to
> debugging base system :-):-).
>
> ---
> Yasuhiro Kimura
>
>
>
> --
> Nuno Teixeira
> FreeBSD Committer (ports)
>
>
> --
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 214-642-9640                 E-Mail: ler@lerctr.org
> US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106
>


-- 
Nuno Teixeira
FreeBSD Committer (ports)