From nobody Sun Aug 14 21:58:10 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 4M5WW91VqQz4YZCw for ; Sun, 14 Aug 2022 21:58:13 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (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 "mail.nomadlogic.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M5WW81JHDz3tdx for ; Sun, 14 Aug 2022 21:58:12 +0000 (UTC) (envelope-from pete@nomadlogic.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomadlogic.org; s=04242021; t=1660514290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RH9C0m/4+63KLrozD8KgEcmWKpZ97jQOBGOf0pgkx98=; b=5MOU74AvQOYzf+Re/n7xmt4RI0N5THsNASetR6XQBvJyws33DkDuvX2U3Y1Of3J3L/DbHb cHl5B5lOKV3XIpKHpygUA6iXSaZgHl8Lkc9L+XmijxU9NnFT+GvvyLTDl0nVWq4NviYZhu IHHXT6Rkx53bkZFIjSbDJQWdYqkTnXM= Received: from [192.168.1.160] (cpe-24-24-168-214.socal.res.rr.com [24.24.168.214]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 152fcc64 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 14 Aug 2022 21:58:10 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------KHuzLWsoYeS6OttuMoe8Oi9M" Message-ID: <9c63a5cd-cd3e-dba4-e436-10f2187ec6f5@nomadlogic.org> Date: Sun, 14 Aug 2022 14:58:10 -0700 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: Updating EFI boot loader results in boot hangup Content-Language: en-US To: freebsd-current@freebsd.org 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> From: Pete Wright In-Reply-To: <77a7f41c-b060-8582-f19f-345c33043750@gmail.com> X-Rspamd-Queue-Id: 4M5WW81JHDz3tdx X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nomadlogic.org header.s=04242021 header.b=5MOU74Av; dmarc=pass (policy=quarantine) header.from=nomadlogic.org; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 66.165.241.226 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DKIM_TRACE(0.00)[nomadlogic.org:+]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------KHuzLWsoYeS6OttuMoe8Oi9M Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 8/14/22 13:26, Graham Perrin wrote: > On 14/08/2022 20:26, Pete Wright wrote: >> … has anyone else who has been impacted by this been able to recover? … > 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 Wright pete@nomadlogic.org @nomadlogicLA --------------KHuzLWsoYeS6OttuMoe8Oi9M Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 8/14/22 13:26, Graham Perrin wrote:
On 14/08/2022 20:26, Pete Wright wrote:
… has anyone else who has been impacted by this been able to recover? …
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 Wright
pete@nomadlogic.org
@nomadlogicLA
--------------KHuzLWsoYeS6OttuMoe8Oi9M--