Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Aug 2022 21:25:33 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        Yasuhiro Kimura <yasu@freebsd.org>, FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: Updating EFI boot loader results in boot hangup
Message-ID:  <CAFDf7UKOQO22MkEeFm_Hms6NYn3mxxo=O0mbxAc1-Z%2Bi7UWMaA@mail.gmail.com>
In-Reply-To: <f26fa4d967472ead2967178226e96d8d@lerctr.org>
References:  <20220813.015426.809710797578801280.yasu@FreeBSD.org> <CAFDf7ULYcHfmw4VNroe%2BOECAFo2L4BP3aEtBJwXNcBArYGMq_g@mail.gmail.com> <20220813.024435.741655799390389695.yasu@FreeBSD.org> <CAFDf7UJ2OU4rwhaYD9N%2B9Nx%2BsygG5Y-j9RfZpTNDiVKVNnFhFA@mail.gmail.com> <f26fa4d967472ead2967178226e96d8d@lerctr.org>

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

[-- Attachment #1 --]
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)

[-- Attachment #2 --]
<div dir="ltr"><div>The problem is if boot is failing, how to mount and rename it?<br><br></div><div>I&#39;m looking for a way, if possible, to boot directly bkp boot64x in case of failure.</div><div>I was hoping to find it in loader(8) or uefi(8)...<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Larry Rosenman &lt;<a href="mailto:ler@lerctr.org">ler@lerctr.org</a>&gt; escreveu no dia sexta, 12/08/2022 à(s) 21:09:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Arial,Helvetica,sans-serif">
<p>I would assume just rename the bootx64.old to bootx64.efi</p>
<p>and/or put it in a different directory that EFI can see </p>
<p><br></p>
<p id="gmail-m_-5899437215941506011reply-intro">On 08/12/2022 3:03 pm, Nuno Teixeira wrote:</p>
<blockquote type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div id="gmail-m_-5899437215941506011replybody1">
<div dir="ltr">
<div>I&#39;m searching without success to load a bkp loader in case of boot failure.</div>
<div> </div>
<div>Upgrade process willl be like:</div>
<div>---<br>mount -t msdosfs /dev/nvd0p1 /mnt<br>cp /mnt/efi/boot/bootx64.efi /mnt/efi/boot/bootx64.old<br>cp /boot/loader.efi /mnt/efi/boot/bootx64.efi<br>---</div>
<div> </div>
<div>I can&#39;t find the right docs to load bootx64.old.</div>
<div>Could you tell me what you did to solve your boot?</div>
<div> </div>
<div>Thanks</div>
</div>
<br>
<div>
<div dir="ltr">Yasuhiro Kimura &lt;<a href="mailto:yasu@freebsd.org" rel="noreferrer" target="_blank">yasu@freebsd.org</a>&gt; escreveu no dia sexta, 12/08/2022 à(s) 18:45:</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Nuno Teixeira &lt;<a href="mailto:eduardo@freebsd.org" rel="noreferrer" target="_blank">eduardo@freebsd.org</a>&gt;<br>Subject: Re: Updating EFI boot loader results in boot hangup<br>Date: Fri, 12 Aug 2022 18:26:11 +0100<br><br>&gt; Hello Yasu,<br>&gt; <br>&gt; Does it needes to update boot loader everytime that we upgrade current?<br><br>No, you need not.<br><br>&gt; The only time that I updated was a month ago because of zfs upgrade and I need to practice how to boot<br>&gt; loader bkp file :)<br><br>I update boot loader everytime because I&#39;d like to do it :-).<br>And sometimes problem hits upon me like this time and I contribute to<br>debugging base system :-):-).<br><br>---<br>Yasuhiro Kimura<br><br></blockquote>
</div>
<br clear="all"><br>-- <br>
<div dir="ltr">
<div dir="ltr"><span style="color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div>
</div>
</div>
</blockquote>
<p><br></p>
<div id="gmail-m_-5899437215941506011signature">
<div style="margin:0px;padding:0px;font-family:monospace"><span>-- <br>Larry Rosenman                     <a href="http://www.lerctr.org/~ler" rel="noopener noreferrer" target="_blank">http://www.lerctr.org/~ler</a><br>Phone: +1 214-642-9640                 E-Mail: <a href="mailto:ler@lerctr.org" target="_blank">ler@lerctr.org</a><br>US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106<br></span></div>
</div>
</div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKOQO22MkEeFm_Hms6NYn3mxxo=O0mbxAc1-Z%2Bi7UWMaA>