Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-07-15 13:57:58 -07:00
parent 4abf35e257
commit 01b9a4cff5
No known key found for this signature in database
GPG Key ID: 555C902A34EC968F

View File

@ -91,7 +91,7 @@ chmod 400 /.data.key
chattr +i /.data.key
# Create a new dataset with encryption enabled
zfs create acltype=posix -o atime=off -o compression=zstd-3 -o checksum=blake3 -o dnodesize=auto -o encryption=on -o keyformat=passphrase -o keylocation=file:///.data.key -o overlay=off -o xattr=sa rpool/data
zfs create -o acltype=posix -o atime=off -o compression=zstd-3 -o checksum=blake3 -o dnodesize=auto -o encryption=on -o keyformat=passphrase -o keylocation=file:///.data.key -o overlay=off -o xattr=sa rpool/data
```
Next, we need to set up a systemd service for automatic unlocking. Put the following inside `/etc/systemd/system/zfs-load-key.service`: