Add autotrim to zpool creation command

This commit is contained in:
coolneng 2021-08-17 00:57:33 +01:00
parent 89e18e6f6a
commit b5dafa9b70
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ partition_disk() {
}
zfs_setup() {
zpool create -f -o ashift=13 -O acltype=posixacl -O relatime=on \
zpool create -f -o ashift=13 -o autotrim=on -O acltype=posixacl -O relatime=on \
-O xattr=sa -O dnodesize=legacy -O normalization=formD -O mountpoint=none \
-O canmount=off -O devices=off -R /mnt -O compression=zstd -O encryption=aes-256-gcm \
-O keyformat=passphrase -O keylocation=prompt syscea "$DISK"p2