From nobody Fri Aug 12 20:26:08 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M4FYt1h6jz4Z6tp for ; Fri, 12 Aug 2022 20:26:10 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2602:fcdb:0:10:7ae3:b5ff:fe1b:23b4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.lerctr.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M4FYs4tyWz3tfN; Fri, 12 Aug 2022 20:26:09 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=ler2019; h=Content-Type:Message-ID:References:In-Reply-To:Subject:Cc:To: From:Date:MIME-Version:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=wZONfrlYoso0KkqAbZk2zUNi05V98fyaLUa78IAHyc0=; b=Xitg5jSgys1+QQAEk7Dk8GpXyY YeyGGmL9GxoOViy5rxldWRrF7nTh/ndPyApgIadUrFYMuHXbZg6TXZ7jzkykdVxVfgx2LTLC/YvKy Rqbs6iB+ipPfUhdHyxeWhtLRUgf2D0xTWMVCJ5VQLrbXMJzdKDxpUCAJ1Q6llYnQSSjYMoQf0YQwf KznBO5/G+XWmNHhkz8nxbZ633ZXdgp9gb1DW51+ALwG5FtScmeq8YaARGG7wc4BSCnUROqHJt3sBp vtb3Gm5gvRhH5I5T9b9L8UCol7irNmu5ZPUxZ/+E3qMFIyuG23/rIQ+8g5hN2qrrosxKoRfI/J8F2 hegCkIBA==; Received-SPF: pass (thebighonker.lerctr.org: domain of lerctr.org designates 2602:fcdb:0:10:7ae3:b5ff:fe1b:23b4 as permitted sender) client-ip=2602:fcdb:0:10:7ae3:b5ff:fe1b:23b4; envelope-from=ler@lerctr.org; helo=webmail.lerctr.org; Received: from thebighonker.lerctr.org ([2602:fcdb:0:10:7ae3:b5ff:fe1b:23b4]:15798 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1oMbEP-0004HR-4E; Fri, 12 Aug 2022 15:26:09 -0500 Received: from 2600:1700:210:b18f:b9c7:5d38:a0f5:985a by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Fri, 12 Aug 2022 15:26:08 -0500 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Date: Fri, 12 Aug 2022 15:26:08 -0500 From: Larry Rosenman To: Nuno Teixeira Cc: Yasuhiro Kimura , FreeBSD CURRENT Subject: Re: Updating EFI boot loader results in boot hangup In-Reply-To: References: <20220813.015426.809710797578801280.yasu@FreeBSD.org> <20220813.024435.741655799390389695.yasu@FreeBSD.org> Message-ID: <78c22181179d9c7f9fcea829002095eb@lerctr.org> X-Sender: ler@lerctr.org Content-Type: multipart/alternative; boundary="=_90ff7f40576326d8e776db908fd72d51" X-Rspamd-Queue-Id: 4M4FYs4tyWz3tfN X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=lerctr.org header.s=ler2019 header.b=Xitg5jSg; dmarc=pass (policy=none) header.from=lerctr.org; spf=pass (mx1.freebsd.org: domain of ler@lerctr.org designates 2602:fcdb:0:10:7ae3:b5ff:fe1b:23b4 as permitted sender) smtp.mailfrom=ler@lerctr.org X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[lerctr.org,none]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_ALLOW(-0.20)[lerctr.org:s=ler2019]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:55103, ipnet:2602:fcdb::/36, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; DKIM_TRACE(0.00)[lerctr.org:+]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEFALL_USER(0.00)[ler]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --=_90ff7f40576326d8e776db908fd72d51 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed boot off a memstick? On 08/12/2022 3:25 pm, Nuno Teixeira wrote: > 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 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 escreveu no dia sexta, 12/08/2022 > à(s) 18:45: From: Nuno Teixeira > 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) -- 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 --=_90ff7f40576326d8e776db908fd72d51 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

boot off a memstick?


On 08/12/2022 3:25 pm, Nuno Teixeira wrote:

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 ca= se 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 fai= lure.
 
Upgrade process willl be like:
---
mount -t msdosfs /dev/nvd0p1 /mnt
cp /mnt/efi/boot/bootx= 64.efi /mnt/efi/boot/bootx64.old
cp /boot/loader.efi /mnt/efi/boot/boo= tx64.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: R= e: Updating EFI boot loader results in boot hangup
Date: Fri, 12 Aug 2= 022 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
> lo= ader 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 :-):-).

---
Yasuh= iro Kimura



--
Nuno Teixeira
FreeBSD= Committer (ports)


--&= nbsp;
Larry Rosenman         &= nbsp;           http://www.lerctr.org/~ler
Phone: +1 214-642-9640  &nbs= p;            &= nbsp; E-Mail: ler= @lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106


--
Nuno Teixeira
FreeBSD= Committer (ports)


= -- 
Larry Rosenman     &n= bsp;            = ;   http://www.lerctr.org/~ler
Phone: +1 = 214-642-9640           &n= bsp;     E-Mail: ler@lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106=
--=_90ff7f40576326d8e776db908fd72d51--