From nobody Fri Aug 12 20:09:23 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 4M4FBh70Jkz4Z39W for ; Fri, 12 Aug 2022 20:09:32 +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 4M4FBh08PRz3ny4; Fri, 12 Aug 2022 20:09:32 +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=Kl1y49iBDE+UhQWR3CV4dVaLyU4IFxJVOU3vcYaDAlI=; b=HhLo3Yv6KP9LWoBnghTlq2mVu8 BxHkbb5/n/bMvMZrbn9ucwCcjlKueJZ5Irtv53EHiUIxAtlcj9pioF1fSockO+FtUwyrOMINTw/1W v5NJPOpFXwbuaIhf47mio9LH6LsvvDNB84iqlJNa1mzVdIft9sFlhEQuhK/gryAAd6CbqOIQr6ggU MJeGu6VixciGoHfyHA8uL9+ZVxvP8VgBAwfxZZuDYVH8NABMXakNqdnv9slm0adtBIn0eMLnH/s1j CR1jOkvH1sAy7FI1H7XWgPNYeTPXrqDEOnfRYVYYulYkbcdHTUdQMp4RAedAzs9Epdm6r+6QLcTdN cwHFv8RQ==; 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]:59616 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 1oMayB-0003zP-97; Fri, 12 Aug 2022 15:09:23 -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:09:23 -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:09:23 -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: X-Sender: ler@lerctr.org Content-Type: multipart/alternative; boundary="=_49eb67faa3b190b6f5709d9ed53a4a6f" X-Rspamd-Queue-Id: 4M4FBh08PRz3ny4 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=lerctr.org header.s=ler2019 header.b=HhLo3Yv6; 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)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[lerctr.org,none]; R_DKIM_ALLOW(-0.20)[lerctr.org:s=ler2019]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:55103, ipnet:2602:fcdb::/36, country:US]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[lerctr.org:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEFALL_USER(0.00)[ler]; ARC_NA(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 --=_49eb67faa3b190b6f5709d9ed53a4a6f Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed 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 --=_49eb67faa3b190b6f5709d9ed53a4a6f Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

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 n= o dia sexta, 12/08/2022 à(s) 18:45:
From: Nuno Teixeira <eduardo@freebsd.org= >
Subject: Re: Updating EFI boot loader results in boot hangup<= br />Date: Fri, 12 Aug 2022 18:26:11 +0100

> Hello Yasu,
>
> Does it needes to update boot loader everytime that we upg= rade current?

No, you need not.

> The only time th= at 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 ev= erytime 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     &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=
--=_49eb67faa3b190b6f5709d9ed53a4a6f--