HomeFreeBSD

adduser(8): support creation of ZFS dataset

Description

adduser(8): support creation of ZFS dataset

On systems utilizing ZFS, default to creating a ZFS dataset for a new
user's home directory if the parent directory resides on a ZFS dataset.
Add a flag that disables this behavior if the administrator explicitly
does not want it.

If run during installation from within a chroot, set mountpoint to legacy
after dataset creation and mount directly into the chroot. Then umount
and reset the mountpoint to inherit from parent.

Also support ZFS default encryption on user's home directory.

Feedback by: delphij
Reviewed by: imp, kevans
Pull Request: https://github.com/freebsd/freebsd-src/pull/881

(cherry picked from commit 215c0a5158f17f515f365fc28a9ff0b367be8fc9)

Details

Provenance
john.grafton_runbox.comAuthored on Apr 11 2024, 6:11 PM
desCommitted on Apr 29 2024, 10:16 AM
Parents
rG1da8405cdec4: add defaults for adduser.sh (OK? [yes] & additional user [no])
Branches
Unknown
Tags
Unknown