]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
adduser(8): support creation of ZFS dataset
authorJohn Grafton <john.grafton@gmail.com>
Thu, 11 Apr 2024 18:11:18 +0000 (12:11 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 11 Apr 2024 18:13:05 +0000 (12:13 -0600)
commit215c0a5158f17f515f365fc28a9ff0b367be8fc9
treebda8bbb4a0c7fd873500bf69f86e6042c6ed66cd
parent44e128fe9d92c1a544b801cb56e907a66ef34691
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
usr.sbin/adduser/adduser.8
usr.sbin/adduser/adduser.conf.5
usr.sbin/adduser/adduser.sh