stages/users: Explicitly create a home directory

On distributions such as Arch Linux the home directory is not created by
default.
This commit is contained in:
Jelle van der Waa 2021-12-08 15:30:08 +01:00 committed by Christian Kellner
parent 5b3ebd7912
commit f965ca8510

View file

@ -94,6 +94,7 @@ def useradd(root, name, uid=None, gid=None, groups=None, description=None, home=
arguments += ["--comment", description]
if home:
arguments += ["--home-dir", home]
arguments += ["--create-home"]
if shell:
arguments += ["--shell", shell]
if password is not None: