Ubuntu: Set autotrim=on

The Ubuntu installer sets this.
This commit is contained in:
Richard Laager
2020-12-12 03:34:17 -06:00
parent 0e42253039
commit e4cc9f9799

View File

@@ -374,7 +374,7 @@ Step 2: Disk Formatting
#. Create the boot pool::
zpool create \
-o ashift=12 -d \
-o ashift=12 -o autotrim=on -d \
-o feature@async_destroy=enabled \
-o feature@bookmarks=enabled \
-o feature@embedded_data=enabled \
@@ -444,7 +444,7 @@ Step 2: Disk Formatting
- Unencrypted::
zpool create \
-o ashift=12 \
-o ashift=12 -o autotrim=on \
-O acltype=posixacl -O canmount=off -O compression=lz4 \
-O dnodesize=auto -O normalization=formD -O relatime=on \
-O xattr=sa -O mountpoint=/ -R /mnt \
@@ -453,7 +453,7 @@ Step 2: Disk Formatting
- ZFS native encryption::
zpool create \
-o ashift=12 \
-o ashift=12 -o autotrim=on \
-O encryption=aes-256-gcm \
-O keylocation=prompt -O keyformat=passphrase \
-O acltype=posixacl -O canmount=off -O compression=lz4 \
@@ -466,7 +466,7 @@ Step 2: Disk Formatting
cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha256 ${DISK}-part4
cryptsetup luksOpen ${DISK}-part4 luks1
zpool create \
-o ashift=12 \
-o ashift=12 -o autotrim=on \
-O acltype=posixacl -O canmount=off -O compression=lz4 \
-O dnodesize=auto -O normalization=formD -O relatime=on \
-O xattr=sa -O mountpoint=/ -R /mnt \