From nobody Tue Jul 2 12:54:15 2024 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 4WD2tV5Fgzz5QNQf for ; Tue, 02 Jul 2024 12:54:42 +0000 (UTC) (envelope-from janm@transactionware.com) Received: from mail3.transactionware.com (mail.transactionware.com [203.14.245.7]) by mx1.freebsd.org (Postfix) with SMTP id 4WD2tT1lBmz4sC5 for ; Tue, 2 Jul 2024 12:54:41 +0000 (UTC) (envelope-from janm@transactionware.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of janm@transactionware.com designates 203.14.245.7 as permitted sender) smtp.mailfrom=janm@transactionware.com Received: (qmail 93139 invoked by uid 907); 2 Jul 2024 12:54:32 -0000 Received: from i59F7FFBA.versanet.de (HELO smtpclient.apple) (89.247.255.186) (smtp-auth username janm, mechanism plain) by mail3.transactionware.com (qpsmtpd/0.84) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) ESMTPSA; Tue, 02 Jul 2024 22:54:32 +1000 Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Booting in bhyve always sets currdev to ZFS From: Jan Martin Mikkelsen In-Reply-To: Date: Tue, 2 Jul 2024 14:54:15 +0200 Cc: FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <4988117B-1511-43DA-8B78-1BC007C037F2@transactionware.com> References: To: Rick Macklem X-Mailer: Apple Mail (2.3774.600.62) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_SPF_ALLOW(-0.20)[+ip4:203.14.245.0/24]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[transactionware.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:17559, ipnet:203.14.245.0/24, country:AU]; RCVD_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; TAGGED_RCPT(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; APPLE_MAILER_COMMON(0.00)[]; TO_DN_ALL(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4WD2tT1lBmz4sC5 On 29. Jun 2024, at 03:26, Rick Macklem wrote: >=20 > Hi, >=20 > I've installed FreeBSD current in a bhvye instance. Everything > went ok, with UFS as a root partition. > Then I created a zpool in another partition... > - Now, every time I boot it I have to > OK set currdev=3Ddisk0s1a: > to get it to boot. >=20 > What is the trick to keep ZFS from messing up the boot variables? I remember having this problem a few years ago. I see I have in an old = startup file, =E2=80=98-e =E2=80=9Crootdev=3Ddisk0=E2=80=9D=E2=80=99 to = set a loader environment variable. I also recall needing different Bhyve = firmware, and I used gptboot. Some of these things might have been for = different reasons. Other details are fuzzy. Regards, Jan M.=