]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: use the just built systemd-sysusers instead of groupadd
authorLuca Boccassi <bluca@debian.org>
Thu, 25 Aug 2022 11:30:58 +0000 (12:30 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 25 Aug 2022 13:52:00 +0000 (13:52 +0000)
It disappeared again from SUSE Tumbleweed. Just use sysusers since we
just built it.

mkosi.build

index 76a813bf0a245be9ddc3c1250aa588c041e7fbae..cb67ad722bf453a8088f740345fdd3af1231532b 100755 (executable)
@@ -156,7 +156,7 @@ cd "$BUILDDIR"
 ninja "$@"
 if [ "$WITH_TESTS" = 1 ] ; then
         for id in 1 2 3; do
-                getent group $id >/dev/null || groupadd -g $id testgroup$id
+                getent group $id >/dev/null || echo "g testgroup$id $id -" | ./systemd-sysusers -
         done
 
         if [ -n "$SANITIZERS" ]; then