From nobody Mon Jun 22 15:06:30 2026 X-Original-To: doc@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 4gkWkG553bz6hNHM for ; Mon, 22 Jun 2026 15:06:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gkWkG4Y0Wz3DK9 for ; Mon, 22 Jun 2026 15:06:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782140790; 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=HxO1rOxJmlWhsagp/k4bOhKPrg4qu/+4bTw1gt8LNRc=; b=Ku4Aoz9jky2YJDkcgW1wGacgDomwj4fnXEb20u7dpOOb7t6sprXfJ/obLxeyEz+b0cZZqa dBKLPW9Ea/n5VkLpiJ0yklH1MuLvUoUEMMl27j5u9nP7hUZs21Wuzul+z4f5YWnQTcRj5c siX5bCWZA6N1GlNxHvDLpdnlUGWSLt8MfXpgxvODUgP9OYBPnI5NIN9OyKBglQ3Jr42lOz tv7jix66dgWgWy+DXWBCQFA8NVCBXhZxw60foNxsmTNcNOYEuyrk5RAn44u48lJbJ3bkep 66urmY2Omk/tUB5FhUd50h3nWYCvaQhgJQkexZvNcpGYdQFnAglFqaEsb2NmwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782140790; a=rsa-sha256; cv=none; b=wJmYTwso7HCZ4Ho/oTK2Tuvp/Xsujsp04DLRDniHtXd/P8sMt4+ZvT+gDfLNXDSp3k+Leh nj1lC9PvsaCXDTnY+7RGcDT+9beGuAtO3J9rUZxlzQWgsVzQkVfv/4lkCwX9xT0QlOkIcg s3AtNJjRXorXhiGA4nEMc33W456BMQNoG+2c7A/MAFL1duOq2X4KNn/dy2UVVGNyb35hI6 8zIBdQoZC0RCki8Hjd3Dcyr1SwIErft4rhTVcl2C4cghJFhrhZxrJPlZg2HsyIR/E4zjmN jR5K62JlfQ+Oexa1lHR1//reHy0/m28y+jXMQJBTY3eUnU7jIyabVQu19Ow14A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782140790; 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=HxO1rOxJmlWhsagp/k4bOhKPrg4qu/+4bTw1gt8LNRc=; b=lZVsk+bevqjCrJd4LFpMKdWvnrRkVupnFmi2HpVvo9GDLNyvBv6HXRPN2Ak1CgNr/ZcI1F 04gj5IaH6NxAslWsB6n2wfW+FSBH6I+2x2DEb70stwaedv3uHdiQRMjY222Ep7sIbC188I 4+HrQYbPe3fda1L4mRrVK4KTrMCMhT5iwfVtFVxZMr/T9vpyX09ucqaJ5zdu2WugP9RO0G J8QUCdVKJpinLTcGl02S0Y+Ef24D5a0/22rE1PWsiqJ8KgbockwOtMuIPykCNkfvONqmV2 2bB4KhkAOmfErcOynSK/gqUdJMTPcY9dRRbyb4zHiverB3Gu6UYj7mLG5CoNcg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4gkWkG2yFmzsgk for ; Mon, 22 Jun 2026 15:06:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 65MF6Urc000502 for ; Mon, 22 Jun 2026 15:06:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 65MF6UBc000501 for doc@FreeBSD.org; Mon, 22 Jun 2026 15:06:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 296130] rc.d/zfskeys blocks boot on keylocation=prompt datasets Date: Mon, 22 Jun 2026 15:06:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Website X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ambrisko@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: doc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D296130 --- Comment #10 from Doug Ambrisko --- I can put this up for review diff --git a/libexec/rc/rc.d/zfskeys b/libexec/rc/rc.d/zfskeys index aff0224d5c9d..35f32b3baeb4 100755 --- a/libexec/rc/rc.d/zfskeys +++ b/libexec/rc/rc.d/zfskeys @@ -45,13 +45,14 @@ unlock_fs() local kl=3D"$2" local k=3D"${kl##file://}" - if [ "$kl" =3D=3D "prompt" ] - then - echo "Key prompt for $fs." - if zfs load-key -L "$kl" "$fs" < /dev/tty > /dev/tty 2>/dev/tty ; = then - echo "Key loaded for $fs." - else - echo "Key failed to load for $fs." + if [ "$kl" =3D=3D "prompt" ]; then + if checkyesno zfskeys_prompt_enable ; then + echo "Key prompt for $fs." + if zfs load-key -L "$kl" "$fs" < /dev/tty > /dev/tty 2>/dev/tt= y ; then + echo "Key loaded for $fs." + else + echo "Key failed to load for $fs." + fi fi elif [ "$k" ] && [ -f "$k" ] && [ -s "$k" ] && [ -r "$k" ]; then if [ "$(zfs get -Ho value keystatus "$fs")" =3D 'available' ]; then I tested it with zfs_enable=3D"YES" zfskeys_enable=3D"YES" zfskeys_prompt_enable=3D"YES" /etc/rc.conf that worked for my case. Without zfskeys_prompt_enable=3D"YES= " it dropped into single user mode since it couldn't mount the needed file syste= ms for my boot. Unless someone has zfskeys_prompt_enable=3D"YES" then nothing should change. --=20 You are receiving this mail because: You are the assignee for the bug.=