From nobody Sun Aug 14 23:09:48 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 4M5Y602pzBz4YvBr for ; Sun, 14 Aug 2022 23:10:00 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M5Y602GCgz42xn for ; Sun, 14 Aug 2022 23:10:00 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660518600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WIzbRvCxiezD2kfpdCOuAFkvMOUyYbiOcngO6UhSIAc=; b=EeXSeA9Smllb2igvFnFoHFPQY1CUrEaovlEhIxtSXLLMuPVRmK/FJ4OGAlJnmvZ14a5mGO 5ak7hm6A8y7B7T/nJ0C2tJNxUXuAc/EjNbMH3B1oacRgyp6G6GoCfFEKy+D6/tTZl1vvGf ZQTU4O0KdNv+y0+EBKWTQdH/5aHF0yjFi+2j9exoC3gjQPBam7vd+svmDFrYHrixO0+pXF f2K0vPRDelfqdLB8kF2GrOu/bLJ4lPPyX0EDDtukxE2wjHxoB5Op575xYpNkb/Uo3K7mb8 o2Aylg7nbzdQhzUG9EyJ2eSPQ2kVAvV8Rgt91m29ZulHn3vQ84Rp06i6RoGnRg== Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4M5Y601C9wz1JGW for ; Sun, 14 Aug 2022 23:10:00 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f47.google.com with SMTP id j2so5832563vsp.1 for ; Sun, 14 Aug 2022 16:10:00 -0700 (PDT) X-Gm-Message-State: ACgBeo0vM+c0muCJUD+i4dM2zyg9wrz9OJfu4zT8+5W8TSQIg3XWv6XD T3md1m+R0pZI7eNcCKcbMFlCChv6kadhC9H/p1U= X-Google-Smtp-Source: AA6agR4Y6CtwJQCZNpP+/hj2pkbSOROwXLz4nlnF5vVChNPfnmy2yeZ0Qv0+KeZ1JWRDDrnGO/L5HoyBXb9taEsYAqs= X-Received: by 2002:a05:6102:374:b0:388:9bd4:5639 with SMTP id f20-20020a056102037400b003889bd45639mr5394747vsa.53.1660518599537; Sun, 14 Aug 2022 16:09:59 -0700 (PDT) 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 References: <20220814.095721.849461222067829352.yasu@FreeBSD.org> <20220814.110850.1703361053728529792.yasu@FreeBSD.org> <45007308-136a-8938-33d0-bb2509ee6ae7@FreeBSD.org> <20220814192609.wyfcogl3dwzteuva@colony.nomadlogic.org> <77a7f41c-b060-8582-f19f-345c33043750@gmail.com> <9c63a5cd-cd3e-dba4-e436-10f2187ec6f5@nomadlogic.org> In-Reply-To: <9c63a5cd-cd3e-dba4-e436-10f2187ec6f5@nomadlogic.org> From: Nuno Teixeira Date: Mon, 15 Aug 2022 00:09:48 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Updating EFI boot loader results in boot hangup To: Pete Wright Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="00000000000044bc7905e63b9d5a" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660518600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WIzbRvCxiezD2kfpdCOuAFkvMOUyYbiOcngO6UhSIAc=; b=jC6i8nenfzZDG5GbAur5OGT0BCc7YsppvDTnOgi+/5qiNbBHBfqOgCQ9heF0n+6E/G5WHx ECELTJOh2tpwNCJcB+3G2MiMrQi5wx8+ehjvcjNzgef+vzDM6n0GwxLfFKLziID8HoS7No lj3J6CGrGWCuzrs3GKmNYybr2nGLW4TB3Qe2d+AxCOIRkM97LHzLTxQSc+eW/XiPVw7qNX K+Cu89HyZc2cafmPUvD7nOpD6puKh1B2uNpE9on0mxlS9TqyvVP6KWhHG7hK6aeIxMCre8 WpiJnQk8tJ2mpzMdZb90AEfY1SUAFBj+RGJ07djM2pRmCkWBGdruGcW7NkQLeQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660518600; a=rsa-sha256; cv=none; b=hW78BUGyvH2KR8Ze/mSviZuzgXptirenliYbog21MUQJC9X2mnwId8WWcf3xsfma7aotkZ 0pNgoziBdlCFLjcd4mWyZd4pSvWKEZc9K/1dSLRm/LDYGc65CBMdY1+g04BJRCP87R50jc xnpSpxediWhnilHmPK7+uLspHnDuRV6kCfnjsIy0iYRmT7pnnVNwAHIskb2n8bhigfcdgV 0U5BgBKO+/M3OEmZ4/Ial/bnY3V0MtEOFzqRphcU2loY77bBGYqgpjXrxJSXpAL3utYHL/ FXGHP+ypyL+/OP3c6+VlQkvG9BinhfQ7MNqunXLkl/Cn3pz9BNvkq4HXB2ahUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --00000000000044bc7905e63b9d5a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Isn't better just to mount -t msdos /dev/xxxpn /mnt and cp /boot/loader.efi /mnt/efi/boot/bootx64.efi? Pete Wright escreveu no dia domingo, 14/08/2022 =C3= =A0(s) 22:58: > > > On 8/14/22 13:26, Graham Perrin wrote: > > On 14/08/2022 20:26, Pete Wright wrote: > > =E2=80=A6 has anyone else who has been impacted by this been able to reco= ver? =E2=80=A6 > > If you have multiple boot environments: do you have a non-affected BE > (prior to c32dde3166922f55927764464d13f1bc9640f5f6)? > > > So unfortunately i didn't have a recent BE, but I was able to do the > following to get back up: > > 1. download latest CURRENT snapshot memdisk from ftp.freebsd.org and put > it on a usb drive > 2. boot via usb drive and enter live shell > 3. load zfs kmod: > kldload zfs > 4. import zroot: > zpool import -R /mnt/ zroot > 5. mount ROOT filesystem: > zfs mount zroot/ROOT/default > 6. copy usb loader to zroot: > cp /boot/loader /mnt/boot/loader > > > i'd recommend just using boot environments, it's much easier and is > specifically what they are for :) > > -pete > > -- > Pete Wrightpete@nomadlogic.org > @nomadlogicLA > > --=20 Nuno Teixeira FreeBSD Committer (ports) --00000000000044bc7905e63b9d5a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Isn't better just to mount -t msdos /dev/xxxpn /mnt an= d cp /boot/loader.efi /mnt/efi/boot/bootx64.efi?

Pete Wright <pete@nomadlogic.org> escreveu no dia= domingo, 14/08/2022 =C3=A0(s) 22:58:
=20 =20 =20


On 8/14/22 13:26, Graham Perrin wrote:
=20
On 14/08/2022 20:26, Pete Wright wrote:
=E2=80=A6 has anyone else who has been impacted by this been a=
ble to recover? =E2=80=A6
If you have multiple boot environments: do you have a non-affected BE (prior to c32dde3166922f55927764464d13f1bc9640f5f6)?

So unfortunately i didn't have a recent BE, but I was able to do th= e following to get back up:

1. download latest CURRENT snapshot memdisk from ftp.freebsd.org and put it on a usb drive
2. boot via usb drive and enter live shell
3. load zfs kmod:
=C2=A0=C2=A0=C2=A0 kldload zfs
4. import zroot:
=C2=A0=C2=A0=C2=A0 zpool import -R /mnt/ zroot
5. mount ROOT filesystem:
=C2=A0=C2=A0=C2=A0 zfs mount zroot/ROOT/default
6. copy usb loader to zroot:
=C2=A0=C2=A0=C2=A0 cp /boot/loader /mnt/boot/loader


i'd recommend just using boot environments, it's much easier an= d is specifically what they are for :)

-pete
--=20
Pete Wright
pete@nomadlogic.or=
g
@nomadlogicLA


--
Nun= o Teixeira
FreeBSD Committer (ports)
--00000000000044bc7905e63b9d5a--