feature(zfs): Optionally don't compress and/or don't encrypt (#3)

This commit is contained in:
hygienic-books 2023-03-27 02:40:27 +02:00
parent 2f209db426
commit 16c746e9d4

View File

@ -53,6 +53,26 @@ The script will use the `EF00` partition to install a ZFSBootMenu EFI executable
```
During execution the script will call itself when it changes into its `chroot`, that's why we `export SCRIPT_URL`. Feel free to update `"${SCRIPT_URL}"` with whatever branch or revision you want to use from [quico.space/quico-os-setup/arch-zbm](https://quico.space/quico-os-setup/arch-zbm). Typically `.../branch/main/setup.sh` as shown above is what you want.
### Options
#### Compression
By default we create a zpool with ZFS properties `compression=on`. If the `lz4_compress` pool feature is active this will by default enable `compression=lz4`. See `man 7 zfsprops` for example in ZFS 2.19 for details. See `zpool get feature@lz4_compress <pool>` to check this feature's status on your `<pool>`.
To get zpool with uncompressed datasets export the shell variable `ARCHZBM_ZFSPROPS_NO_COMPRESSION` with any value prior to running this script. Literally any value works as long as you're not setting this to an empty string:
```
export ARCHZBM_ZFSPROPS_NO_COMPRESSION=yesplease
```
#### Encryption
By default we encrypt the zpool with ZFS properties `encryption=on`. In ZFS 2.1.9 this defaults to `encryption=aes-256-gcm`.
To get an unencrypted zpool export the shell variable `ARCHZBM_ZFSPROPS_NO_ENCRYPTION` with any value prior to running this script:
```
export ARCHZBM_ZFSPROPS_NO_ENCRYPTION=yup
```
## Steps
The scripts takes the following installation steps.