]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Don't add testuser to wheel and systemd-journal groups
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 18 Sep 2024 13:38:43 +0000 (15:38 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 18 Sep 2024 23:47:53 +0000 (08:47 +0900)
This breaks TEST-74-AUX-UTILS when run in a VM as the user gets access
to journal files that the test expects it can't access.

mkosi.postinst.chroot

index 1809a302bcf2318fc63266be7a0f44bce4a982ab..0d0eab93d25fcdd6e0ec67af076aa731344e9767 100755 (executable)
@@ -3,18 +3,11 @@
 set -e
 set -o nounset
 
-if [[ "$DISTRIBUTION" =~ ubuntu|debian ]]; then
-    SUDO_GROUP=sudo
-else
-    SUDO_GROUP=wheel
-fi
-
 useradd \
     --uid 4711 \
     --user-group \
     --create-home \
     --password "$(openssl passwd -1 testuser)" \
-    --groups "$SUDO_GROUP",systemd-journal \
     --shell /bin/bash \
     testuser