I would like all users created to have an individual nested subvolume under /home instead of a regular directory. Is it possible to add the --btrfs-subvolume-home
flag to the default configuration?
Why not create your own script for adding users that always uses this option?
Or are you asking for useradd to allow --btrfs-subvolume-home
to be used with useradd -D
? See man useradd
if you are not familar with the -D
option.
I am wondering if the second option is possible. I read the useradd man page before coming here and it doesn’t say anything about btrfs subvolumes.
If the docs are correct you could raise a ticket against shadow-utils on github.
If you are able to develop a PR adding the support you might get it added.
You could try testing to make sure its not implemented first.
I looked through as much code as I could and did a bunch of testing, I’m fairly certain there is only the command line flag --btrfs-subvolume-home
and there isn’t a way to configure this in /etc/default/useradd
or /etc/login.defs
. I made a feature request. I am not a C developer… yet.