]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Stop creating test users in prepare scripts
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 6 May 2023 09:36:14 +0000 (11:36 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 11 May 2023 10:16:47 +0000 (12:16 +0200)
This was added for opensuse to make the tests pass but doesn't seem
to be needed anymore after recent changes so let's drop it.

mkosi.presets/00-base/mkosi.prepare

index 269ba3e1536b9c6b350ee36b850c0b077b131400..c056d4fc59db9fd14c3b92d88b8807b9ce9aa032 100755 (executable)
@@ -9,10 +9,4 @@ if [ "$1" = "build" ]; then
         alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
         alternatives --set python3 /usr/bin/python3.9
     fi
-
-    # Make sure the necessary test users are available in the build image. We do this here because the build
-    # script does not run as root.
-    for id in 1 2 3; do
-        getent group $id >/dev/null || echo "g testgroup$id $id -" | systemd-sysusers -
-    done
 fi