mirror of
https://github.com/systemd/systemd
synced 2024-10-01 13:55:20 +00:00
mkosi: Replace sysusers.d with useradd for test user
sysusers.d is not intended for regular users, so let's use useradd instead.
This commit is contained in:
parent
d5474f78b8
commit
27cd8a61c1
|
@ -1 +0,0 @@
|
|||
u testuser 4711 "Test User" /home/testuser
|
|
@ -1 +0,0 @@
|
|||
q /home/testuser 0700 4711 4711
|
|
@ -3,6 +3,8 @@
|
|||
set -e
|
||||
set -o nounset
|
||||
|
||||
useradd --uid 4711 --create-home --user-group testuser
|
||||
|
||||
if command -v authselect >/dev/null; then
|
||||
# authselect 1.5.0 renamed the minimal profile to the local profile without keeping backwards compat so
|
||||
# let's use the new name if it exists.
|
||||
|
|
Loading…
Reference in a new issue