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:
Daan De Meyer 2024-06-07 22:32:08 +02:00
parent d5474f78b8
commit 27cd8a61c1
3 changed files with 2 additions and 2 deletions

View file

@ -1 +0,0 @@
u testuser 4711 "Test User" /home/testuser

View file

@ -1 +0,0 @@
q /home/testuser 0700 4711 4711

View file

@ -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.