From nobody Sun Jun 30 01:52:31 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 4WBXHb6DFHz5QK29 for ; Sun, 30 Jun 2024 01:52:43 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WBXHb2ZHPz4nkZ for ; Sun, 30 Jun 2024 01:52:43 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=J9Yb20bo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2607:f8b0:4864:20::32e as permitted sender) smtp.mailfrom=rick.macklem@gmail.com Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-700d083b65bso1223775a34.3 for ; Sat, 29 Jun 2024 18:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719712362; x=1720317162; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jIJNcA1cNjTa4bz9ERTX48vZwVV9zEuuAiZenCzdpIc=; b=J9Yb20boNkXEmXz+lgZM8OdpOTLvNJFxnKW/Q1zalZfQprtfJugchYkXP0OpXAJC1d EOENux9naAL5CxbexdRLmhblzV6jQlFcz1Mh+uXmmGQHeo/tki/nidl7sPMrH+zG21kf GBx+S3Iht4upGOTdl2itw+n5ayz9IkDccivCco5IJbBLFyNHPAFp32JeFumNHNpjLBRg k5C4GHTJj7l8aOcFnqN0J2tR2uylf4x4huHHO5LyLmNAs3gwY3ezLt3UHjSlTvmWVrlw fro4oap6uWSayori5Ob5jhGit2+5NsC0juag8X1xouH87Q1mmj36omtmMoL1XBNWL9CQ DtyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719712362; x=1720317162; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jIJNcA1cNjTa4bz9ERTX48vZwVV9zEuuAiZenCzdpIc=; b=DCYHSDLKnOmtbIWOtK6OEI6rqNJTpSv3bKFS0ywIVI/t4WkVU5gEC6TFOsYRnopcpu w7zy0M2eCo5bcZn9FiBYVuitoaN8BHks1s+H3irCcEc8szN0xGjmLbAXHC9mnAxAwPnF oLfftY4pHIRgDPvBT97DxEe1C37SlLdVCqd53kGsn0TwCc8vYriHK4uh+cKMYUhez0VB vCR0abcbiPRCF9sgifAMbYEnZqloR1AaWy1wv2SRQ10RDdtCzCiiiKUOZlPnECdoB5/V KYle0J1kwflyb66tQy4KMAJ+acRMjY6NCN3YiSqx09O/hEllZCp4gigEepy32gT8txA7 x03Q== X-Gm-Message-State: AOJu0YwquzBc8zTgJvU7MyOzhqh2WrMatUe4V2yAqAaf7s0LT7vE5mYg LLF2CRcKBrPYZq77bXRVBRcM5TSzR1G6aeLmEdjvieWz+98j/1OSrDQ35cQ5mQBfw0RZsG7Q3JB YfTO4HRyHHkA1rL9hs7hQE+4EdObz X-Google-Smtp-Source: AGHT+IEfHN0zOR+trfvLlxQqqjIvTjabgn+pAMHQpkF1FpjhK/NAYMrUQRIpdldUww8pRi8/Z4h6MXOF0cAozYx6RIg= X-Received: by 2002:a05:6830:4a:b0:700:cf09:f512 with SMTP id 46e09a7af769-702075be678mr2473528a34.1.1719712362288; Sat, 29 Jun 2024 18:52:42 -0700 (PDT) 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 References: In-Reply-To: From: Rick Macklem Date: Sat, 29 Jun 2024 18:52:31 -0700 Message-ID: Subject: Re: Booting in bhyve always sets currdev to ZFS To: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; TAGGED_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32e:from] X-Rspamd-Queue-Id: 4WBXHb2ZHPz4nkZ On Fri, Jun 28, 2024 at 6:26=E2=80=AFPM Rick Macklem wrote: > > Hi, > > 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. > > What is the trick to keep ZFS from messing up the boot variables? I've been poking around, but haven't learned much. I think it is userboot (although there are so many boot programs in /boot, I am not 100% sure?) that sets currdev=3Dzfs:example: since it sees there i= s ZFS in a partition on the drive. It is not the boot partition and doesn't have any boot stuff in it. When I look at userboot, it appears that it always sets userboot_zfs_found to 1 whenever userboot_zfs_probe() is called, given that there is a ZFS partition with a pool on it. This makes extract_currdev get set to the ZFS stuff, assuming I am reading the code correctly. What I do not understand is why I have not seen this before? (Was the a change to building it with USERBOOT_ZFS_SUPPORT done?) It seems that userboot_zfs_probe() should check for boot files on the volum= e and not just that a pool exists on the partition, maybe? Anyhow, manually setting currdev=3Ddisk0s1a: gets around the problem. rick > > Thanks, rick