From nobody Mon Dec 30 19:21:19 2024 X-Original-To: dev-commits-src-all@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 4YMQv31x6sz5hdP1; Mon, 30 Dec 2024 19:21:19 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YMQv31TyNz473S; Mon, 30 Dec 2024 19:21:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735586479; 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; bh=7rirQUJNbxmKQhK69J/QCOizbjCZhN3JoQnveZvMKfQ=; b=KRbrdAw9ej8JaTULeJB7/9JbJyGdc25EpbNbIJYvkARMm6yZlZAbFb7eE5PBHLXl7Vx1R+ 8yZFpW1eISPM0q5DIJXr4zeLvLfgiCq48JfmQKF13+aCiBM85WmMu10kD8nNPg2IRoza6v 6atW1BatwpzjfIZ/ZLSK4A6RGd8L2Op2JUfkmkEw7TKigbRiOxmg+JGRikQ94iH/Qhdtol qUTz1NbOo9YwBLGKwQamwBDWtFInPCPI6hJNacEdSJL4BUEcIkP6GuZuxYCMEGE5dgmzKT twogMYcedpCX4et3ANMAsA4JfcStHkhYHPo7raX/ZUKS6zN+YpeZym6Wutfymg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735586479; 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; bh=7rirQUJNbxmKQhK69J/QCOizbjCZhN3JoQnveZvMKfQ=; b=tRVaWjgRYqKylk0PLY7uCceIDjf0HwRGEgxUpG025xkPmZ7BQv6mBRe/eHt1MiTWS1Oghs h1OMGEZhjXBWzskKs4ney3AZUXNy2dNIsz2vexihy/HO080rUij9sHSsdxrUN01tmlsJQ1 G96lZb+mOJjKY2EtETFVKnXgDHkBA4h2hz2qwnspzM7sbHF1K5/1pk0kV1IFpd3Wv9qHHZ GDc2C0+0RKAcFp8f4x75ptD0cSNC92AVltgg14ljd2wqIXbmp/AWfULnh6xnjm9DmquUXN SyTXgtVT/+U6RJ/cEOI0WbISYizCM1K/OV/E+m9rvB6kMwHaUbPfHmdPDRtmkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735586479; a=rsa-sha256; cv=none; b=ksBlAKKXh3bLjAC0TuIjvP0kGTf58coJQZsysqyW9JVkSM/xbqi6U7hA/32Y9FHll8rSvb 2ReBoj++kI40L3/2lE7XoDp5Vy6BX8IWWPcpnmI5zlnn8khuhyuQM+/n/CdM7qgyNaGpyV 7w9R49/UeK34+Nj4SvWO6e05HeYv7TBHIlVHpSLpaDrFrjFwdXs9gGQ9FmMb8a9vzjx9Uj ZaFU3KYQaDJxHwz1YKRPOn3e34DD6M+KK35LTcb+Ckt0Pr5F4zN3T4N5viXQjsMXxmBYTq bp3TYAi8Qjmi/sOD0Va8ZQwu655pWUfk2mFjVTGDA3SaVi3OLHxy1SkQgPxvNA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4YMQv315BTz16V5; Mon, 30 Dec 2024 19:21:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BUJLJGK064860; Mon, 30 Dec 2024 19:21:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BUJLJxr064857; Mon, 30 Dec 2024 19:21:19 GMT (envelope-from git) Date: Mon, 30 Dec 2024 19:21:19 GMT Message-Id: <202412301921.4BUJLJxr064857@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 6258b5bf0670 - stable/13 - bsdinstall zfsboot: Add an option to edit the ZFS pool creation options List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6258b5bf0670ba0c280ae1e387fcb0f3ba9f3e32 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=6258b5bf0670ba0c280ae1e387fcb0f3ba9f3e32 commit 6258b5bf0670ba0c280ae1e387fcb0f3ba9f3e32 Author: Craig Leres AuthorDate: 2024-12-26 14:42:11 +0000 Commit: Dimitry Andric CommitDate: 2024-12-30 19:20:17 +0000 bsdinstall zfsboot: Add an option to edit the ZFS pool creation options This allows the default options (-O compress=lz4 -O atime=off) to be overridden, before the ZFS boot pool is created. For example, to set the compression algorithm to something different. Reviewed by: jhb, dim MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D47478 (cherry picked from commit ca7e12f7df222458ec5cac8009c5b0931fb4a95b) --- usr.sbin/bsdinstall/scripts/zfsboot | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/usr.sbin/bsdinstall/scripts/zfsboot b/usr.sbin/bsdinstall/scripts/zfsboot index bd7db75dc5e5..117782763267 100755 --- a/usr.sbin/bsdinstall/scripts/zfsboot +++ b/usr.sbin/bsdinstall/scripts/zfsboot @@ -318,6 +318,9 @@ msg_unsupported_partition_scheme="%s is an unsupported partition scheme" msg_user_cancelled="User Cancelled." msg_yes="YES" msg_zfs_configuration="ZFS Configuration" +msg_please_enter_options_for_your_zpool="Please enter options for your zpool" +msg_zfs_options_name="ZFS Pool Options" +msg_zfs_options_name_help="Customize ZFS options for the zpool to be created" ############################################################ FUNCTIONS @@ -368,6 +371,8 @@ dialog_menu_main() '$msg_swap_mirror_help' 'W $msg_swap_encrypt' '$swapgeli' '$msg_swap_encrypt_help' + 'O $msg_zfs_options_name' '$ZFSBOOT_POOL_CREATE_OPTIONS' + '$msg_zfs_options_name_help' " # END-QUOTE local defaultitem= # Calculated below local hline="$hline_alnum_arrows_punc_tab_enter" @@ -1805,6 +1810,13 @@ while :; do ZFSBOOT_SWAP_ENCRYPTION=1 fi ;; + ?" $msg_zfs_options_name") + # Prompt the user to input/change the pool options + f_dialog_input input \ + "$msg_please_enter_options_for_your_zpool" \ + "$ZFSBOOT_POOL_CREATE_OPTIONS" && + ZFSBOOT_POOL_CREATE_OPTIONS="$input" + ;; esac done