I just tried installing FreeBSD 15-RELEASE. When creating a non-root user, it asked if I wanted to enable ZFS encryption. I chose yes, but it later errored out saying the dataset didn't exist. I suppose bsdinstall tried to enable ZFS encryption a bit too early, because the home dataset was created, but not encrypted.
jrm, something for you?
I can confirm with FreeBSD 15.0-RELEASE for my isolated installation. There are a number of us in the community testing the latest 15.0 version.
Same issue with FreeBSD 15.1. Can you give this a higher priority.
I can reproduce it on 15.1 only when entering a weak encryption key. adduser(8) do not handle it and returns an error while creating dataset.
(In reply to Oleksandr Kryvulia from comment #4) Thanks! Using a stronger password got me pass this issue but I found out my home folder wasn't decrypted after logging in. Adding this to `/etc/pam.d/system` got it automatically decrypted: ``` auth optional pam_zfs_key.so try_first_pass homes=zroot/home session optional pam_zfs_key.so homes=zroot/home ```
Proposed patch review D57962.