From: Daan De Meyer Date: Wed, 18 Sep 2024 13:38:43 +0000 (+0200) Subject: ci: Don't add testuser to wheel and systemd-journal groups X-Git-Tag: v257-rc1~400^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d5b4317cd0140c043495f946e5352b188f3bec0;p=thirdparty%2Fsystemd.git ci: Don't add testuser to wheel and systemd-journal groups 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. --- diff --git a/mkosi.postinst.chroot b/mkosi.postinst.chroot index 1809a302bcf..0d0eab93d25 100755 --- a/mkosi.postinst.chroot +++ b/mkosi.postinst.chroot @@ -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