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>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000002c0b6d05e6111699
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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 =C3=A0(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 failur=
e.
>
> 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 =C3=
=A0(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
>


--=20
Nuno Teixeira
FreeBSD Committer (ports)

--0000000000002c0b6d05e6111699
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>The problem is if boot is failing, how to mount and r=
ename 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=3D"gmail_quote"><=
div dir=3D"ltr" class=3D"gmail_attr">Larry Rosenman &lt;<a href=3D"mailto:l=
er@lerctr.org">ler@lerctr.org</a>&gt; escreveu no dia sexta, 12/08/2022 =C3=
=A0(s) 21:09:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0p=
x 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><d=
iv style=3D"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=C2=A0</p>
<p><br></p>
<p id=3D"gmail-m_-5899437215941506011reply-intro">On 08/12/2022 3:03 pm, Nu=
no Teixeira wrote:</p>
<blockquote type=3D"cite" style=3D"padding:0px 0.4em;border-left:2px solid =
rgb(16,16,255);margin:0px">
<div id=3D"gmail-m_-5899437215941506011replybody1">
<div dir=3D"ltr">
<div>I&#39;m searching without success to load a bkp loader in case of boot=
 failure.</div>
<div>=C2=A0</div>
<div>Upgrade process willl be like:</div>
<div>---<br>mount -t msdosfs /dev/nvd0p1 /mnt<br>cp /mnt/efi/boot/bootx64.e=
fi /mnt/efi/boot/bootx64.old<br>cp /boot/loader.efi /mnt/efi/boot/bootx64.e=
fi<br>---</div>
<div>=C2=A0</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>=C2=A0</div>
<div>Thanks</div>
</div>
<br>
<div>
<div dir=3D"ltr">Yasuhiro Kimura &lt;<a href=3D"mailto:yasu@freebsd.org" re=
l=3D"noreferrer" target=3D"_blank">yasu@freebsd.org</a>&gt; escreveu no dia=
 sexta, 12/08/2022 =C3=A0(s) 18:45:</div>
<blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">From: Nuno Teixeira &lt;<a href=3D"mailto:eduar=
do@freebsd.org" rel=3D"noreferrer" target=3D"_blank">eduardo@freebsd.org</a=
>&gt;<br>Subject: Re: Updating EFI boot loader results in boot hangup<br>Da=
te: 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?<b=
r><br>No, you need not.<br><br>&gt; The only time that I updated was a mont=
h ago because of zfs upgrade and I need to practice how to boot<br>&gt; loa=
der 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 co=
ntribute to<br>debugging base system :-):-).<br><br>---<br>Yasuhiro Kimura<=
br><br></blockquote>
</div>
<br clear=3D"all"><br>-- <br>
<div dir=3D"ltr">
<div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>Fr=
eeBSD Committer (ports)</span></div>
</div>
</div>
</blockquote>
<p><br></p>
<div id=3D"gmail-m_-5899437215941506011signature">
<div style=3D"margin:0px;padding:0px;font-family:monospace"><span>--=C2=A0<=
br>Larry Rosenman =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0<a href=3D"h=
ttp://www.lerctr.org/~ler" rel=3D"noopener noreferrer" target=3D"_blank">ht=
tp://www.lerctr.org/~ler</a><br>Phone: +1 214-642-9640 =C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0E-Mail: <a href=3D"mailto:ler@lerctr.org" target=3D"_blank">ler@lerctr.o=
rg</a><br>US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106<br></span></di=
v>
</div>
</div>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_signature"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nun=
o Teixeira<br>FreeBSD Committer (ports)</span></div></div>

--0000000000002c0b6d05e6111699--



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