Re: BRT copying feature
- Reply: Craig Leres : "Re: BRT copying feature"
- In reply to: Ronald Klop : "Re: BRT copying feature"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Nov 2024 21:29:08 UTC
On 11/7/24 07:31, Ronald Klop wrote:
> Another option is this.
>
> The installer /usr/sbin/bsdinstall uses a script called /usr/libexec/
> bsdinstall/zfsboot. Zfsboot defines this:
>
> #
> # Default options to use when creating zroot pool
> #
> : ${ZFSBOOT_POOL_CREATE_OPTIONS:=-O compress=lz4 -O atime=off}
>
> You can set this environment variabele to your liking before starting
> bsdinstall.
>
> ZFSBOOT_POOL_CREATE_OPTIONS="-O compress=lz4 -O atime=off -o
> feature@block_cloning=disabled" bsdinstall
>
> If you are booting from an USB stick installer you can also change the
> zfsboot script on the USB stick and restart the installer.
>
> NB: don't confuse the option with ZFSBOOT_BOOT_POOL_CREATE_OPTIONS.
ZFSBOOT_POOL_CREATE_OPTIONS is exactly the hint I needed; why not just
allow the user to edit the options? Something along the lines of:
https://reviews.freebsd.org/D47478
Add an option to edit the ZFS pool creation options.
Craig