From nobody Thu Mar 23 20:05:59 2023 X-Original-To: freebsd-questions@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 4PjGZ11mXqz41lBL for ; Thu, 23 Mar 2023 20:06:17 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.126.123]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4PjGZ06Pb7z40lM for ; Thu, 23 Mar 2023 20:06:16 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2001:470:e15b:23::23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id 9006D28018; Thu, 23 Mar 2023 16:06:09 -0400 (EDT) Content-Type: text/plain; charset=us-ascii List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: Current best practices: UEFI boot on zfsboot nvme raid? From: Paul Mather In-Reply-To: Date: Thu, 23 Mar 2023 16:05:59 -0400 Cc: "Derek (freebsd lists)" <482254ac@razorfever.net> Content-Transfer-Encoding: quoted-printable Message-Id: <0781D60A-204F-419C-8A79-34D4668AEE69@gromit.dlib.vt.edu> References: To: FreeBSD Mailing List X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4PjGZ06Pb7z40lM X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1312, ipnet:128.173.0.0/16, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mar 23, 2023, at 3:33 PM, Derek (freebsd lists) = <482254ac@razorfever.net> wrote: > On 2023-03-23 15:23, Paul Mather wrote: >> On Mar 22, 2023, at 4:56 PM, Derek (freebsd lists) = <482254ac@razorfever.net> wrote: >>> My guess is, like swap, it might be possible to gmirror across my = RAID this filesystem and remove all of these considerations. Is this = the best practice? >> I don't know if it's best practices, but that is what I do. I have a = /dev/mirror/efi geom_mirror msdosfs mounted via /etc/fstab on /boot/efi. = That makes it easy to update both copies at once and keep them in sync. >> However, the HUGE downside is that efibootmgr doesn't appear to work = with GEOM labels, and so I get "efibootmgr: Cannot translate unix loader = path" errors when trying to create new boot entries via "efibootmgr -c". = :-( >> I believe this Bugzilla is pertinent, and it still appears to be = open: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229191 >> So, I guess best practices for everything working is to stick with = the low-level device names like ada0p1 and so on. >=20 > This is great information, and good leads to follow. Thanks for your = reply. >=20 > For those finding the thread later, I feel like "stick with low-level = device names" refers to the work around when using efibootmgr referenced = in the bug. I want to affirm what Derek states above. Using the workaround given in = the Bugzilla I was able to create new EFI boot variables via "efibootmgr = -c". Note, you do need to be careful about the path given for the "-l" = option as it won't translate for you as shown in the manual page. E.g., = I ended up doing the following: efibootmgr -a -c -l ada0p1:/EFI/freebsd/loader.efi -L = "FreeBSD-STABLE D0" (Note that the path given after the device name for "-l" refers to the = path in the EFI [msdosfs] partition, not where it is mounted on the = FreeBSD system.) That resulted in this entry being created: +Boot0001* FreeBSD-STABLE D0 = HD(1,GPT,3fa4f298-d933-11ec-9b67-002590da97de,0x28,0x82000)/File(\EFI\FREE= BSD\LOADER.EFI) ada0p1:/EFI/FREEBSD/LOADER.EFI (null) Cheers, Paul.=