From nobody Fri Aug 12 20:48:41 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 4M4G5L60g7z4ZDTW for ; Fri, 12 Aug 2022 20:49:58 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4M4G5L5Q10z40gC; Fri, 12 Aug 2022 20:49:58 +0000 (UTC) (envelope-from yasu@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660337398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hZ1Goe2Mjz1LWv00FCuIIpvOLixZS9OM1211x8iF9us=; b=jQDpkeCOW+/77qY8cCUBj0Ke6ztWCgGe1jvAGuf7SzeZQaVaJ3x3uf/iEgCzuw7aQ1Mseh kI9kyjvl7eSXnL+Zr8gVDPL+bs7piYtlydt/UY228ByAwGPNIkCDetHCQUrCcppR7R/vMJ xv2JFV6wHpVHrXDZvl3zuZBY8ckazJsYFrs3b4l/vx6QiIGHOikqev1rlTkumy13Oyws1K gZkSuup4qX+UUU+9VxdPd90f4xyE7kp41hpBWl8qkPCUXeoLipHgX69fOeedUnNns00BFV nTY3bUQmCxpf8iIfrC3NnQ4DMAoZycZLPGjqzSdBgeZxHaFExg+X9xSzxp/0gg== Received: from localhost (unknown [IPv6:240b:11:220:fe00:6851:7020:dc58:25c6]) (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 did not present a certificate) (Authenticated sender: yasu/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4M4G5L0Sjvz1QRs; Fri, 12 Aug 2022 20:49:57 +0000 (UTC) (envelope-from yasu@FreeBSD.org) Date: Sat, 13 Aug 2022 05:48:41 +0900 (JST) Message-Id: <20220813.054841.1081731685466016992.yasu@FreeBSD.org> To: freebsd-current@freebsd.org Subject: Re: Updating EFI boot loader results in boot hangup From: Yasuhiro Kimura In-Reply-To: References: <20220813.024435.741655799390389695.yasu@FreeBSD.org> X-Mailer: Mew version 6.8 on Emacs 29.0.50 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 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660337398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hZ1Goe2Mjz1LWv00FCuIIpvOLixZS9OM1211x8iF9us=; b=QuUm6p+aRC9oJZr5LL7yH/LHHmPVeHT4r8V18mpkJA2g5zUppxeKYOPVDiLEupKK1ZXiCT gCyBvMFG7x4XpNswJgZXOauN1eaH/2ZlgUwCnQbLQIhBcSKPOjrLAzLNF3FO6i/8pWbYKm anrJQIEEVMyxfrCIBClDek4C0RYPuZ4cptEkDJhRTnwTTABF5LhsKa2Wig7oEfz5MSMq2W 506/4lV13pPmKoLl8c0Hw+tal063y9EVNw1DCS+k45yURZPK34/Tx9HTwXCkX07FXwBcPu fFf3j4RMLInmQsUJoqt1m7AmBCCjZhiUiKS7ebn86p8o7yX7RAdpOxljdx8v5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660337398; a=rsa-sha256; cv=none; b=v5ozhCb1S4Vb24pKF94RfwUifEGYM8Js1+EXcyeShQgFWCJWfMmTN4olJd0QzGC40VtGGQ tC+rD4fAs3ybzzxzgPVGzOu0CPX7TPBBmkiZByYjB9S0l40AShTEqDoZUZfZIkLCZMGNEQ izuef6flq/DXGlcS7ARBAuENU+sW8N+ltdkCDse1TO/Hs0pa1BdU7ghHHiN535h7BEEUs6 KG5KLy26RzYzVROhFhjDG+8eRvx6QIUzMw4DSZFFCQkINh8H45/+ADqreghnTGawZtNty9 p2ON+UES7JExyDJ69wRL9RS7CEI3bKAFRMYyYzOVLI7WwFvxscwDx0lvBVIWlg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N From: Nuno Teixeira Subject: Re: Updating EFI boot loader results in boot hangup Date: Fri, 12 Aug 2022 21:03:02 +0100 > 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 I use VirturalBox to run 14-CURRENT system. UEFI BIOS of VirtualBox provides a way to select loader file and boot from it. So I take following steps when updating loader file. 1. cd /boot/efi/efi/freebsd 2. mv loader.efi loader.backup.efi 3. cp -a /boot/loader.efi . And when boot from new loader file fails, I enter UEFI BIOS, select loader.backup.efi and boot from it. As you can see, above way depends on the feature of VirturalBox. So it depends on your hardware whether or not you can adopt it. As Larry pointed out, surest way is to boot from install media such as memstick or cdrom. --- Yasuhiro Kimura