From owner-freebsd-stable@freebsd.org Fri Jan 11 18:51:17 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C731C149886D for ; Fri, 11 Jan 2019 18:51:16 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2a00:14b0:4200:32e0::1ea]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gilb.zs64.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 02C1980534; Fri, 11 Jan 2019 18:51:16 +0000 (UTC) (envelope-from stb@lassitu.de) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 219781880E8; Fri, 11 Jan 2019 18:51:15 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: Trouble booting from EFI with 12-stable From: Stefan Bethke In-Reply-To: <97B2B194-D1B6-4CC0-BAC2-8167ECDB3182@lassitu.de> Date: Fri, 11 Jan 2019 19:51:11 +0100 Cc: freebsd-stable stable Content-Transfer-Encoding: quoted-printable Message-Id: <1B65638D-C68B-4995-9170-DB34D8051B21@lassitu.de> References: <2E0A45C1-1E0A-42FB-A403-04EF611DB812@lassitu.de> <97B2B194-D1B6-4CC0-BAC2-8167ECDB3182@lassitu.de> To: Kyle Evans X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 02C1980534 X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of stb@lassitu.de designates 2a00:14b0:4200:32e0::1ea as permitted sender) smtp.mailfrom=stb@lassitu.de X-Spamd-Result: default: False [1.51 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[lassitu.de]; NEURAL_SPAM_MEDIUM(0.33)[0.335,0]; NEURAL_SPAM_SHORT(0.73)[0.730,0]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: gilb.zs64.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.26)[0.261,0]; IP_SCORE(-0.00)[country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13135, ipnet:2a00:14b0::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 18:51:17 -0000 > Am 11.01.2019 um 19:35 schrieb Stefan Bethke : >=20 >=20 >=20 >> Am 11.01.2019 um 15:04 schrieb Kyle Evans : >>=20 >> On Fri, Jan 11, 2019 at 5:05 AM Stefan Bethke wrote: >>>=20 >>> The loader stumbles over this error and then drops to the prompt: >>> efi-autoresizecons not found >>>=20 >>> module_path is then not set, and loader can=E2=80=99t load the = kernel. Typing in everything by hand will boot the system OK. >>>=20 >>> I just did a regular make installworld installkernel (previous = install was from mid-december). Do I need to update the boot blocks or = the EFI partition? >>>=20 >>=20 >> Hi, >>=20 >> Interesting; this is generally an indicator that your loader >> (/boot/loader.efi in 12.0 EFI-land) is out-of-date with respect to >> scripts. For that I'd go ahead and double-check that /boot/loader.efi >> was actually updated *and* update the contents of the ESP -- that >> particular change was paired with another one that stopped doing any >> resizing in boot1. >=20 > I thought as much. Is there a succinct step-by-step to install/update = everything involved in the UEFI boot process? The Handbook appears to = have very little on UEFI booting=E2=80=A6 The UEFI man page has a good explanation of which files are involved in = booting: = https://www.freebsd.org/cgi/man.cgi?query=3Duefi&sektion=3D8&manpath=3Dfre= ebsd-release-ports I mounted the ESP and copied /boot/boot1.efi to = /boot/efi/EFI/BOOT/BOOTX64.EFI. Surprisingly, the new boot1.efi is much = smaller than what I had before (according to the timestamp from = November), but using that, booting seems to be restored. # grep efi /etc/fstab /dev/ada0p2 /boot/efi msdos rw,noauto 0 = 0 # mount /boot/efi # ls -l /boot/efi/EFI/BOOT/BOOTX64.EFI = /boot/efi/EFI/BOOT/bak/BOOTX64.EFI=20 -rwxr-xr-x 1 root wheel 81920 Jan 11 18:43 = /boot/efi/EFI/BOOT/BOOTX64.EFI* -rwxr-xr-x 1 root wheel 410112 Nov 25 16:27 = /boot/efi/EFI/BOOT/bak/BOOTX64.EFI* Thanks, Stefan --=20 Stefan Bethke Fon +49 151 14070811