summaryrefslogtreecommitdiffstats
path: root/mkosi.postinst.chroot
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-18 15:38:43 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-09-19 01:47:53 +0200
commit1d5b4317cd0140c043495f946e5352b188f3bec0 (patch)
tree86e9eb429aff86830eb3fd7114e77ec8ddcdf460 /mkosi.postinst.chroot
parenttest: drop removed SCSI passthrough feature (diff)
downloadsystemd-1d5b4317cd0140c043495f946e5352b188f3bec0.tar.xz
systemd-1d5b4317cd0140c043495f946e5352b188f3bec0.zip
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.
Diffstat (limited to 'mkosi.postinst.chroot')
-rwxr-xr-xmkosi.postinst.chroot7
1 files changed, 0 insertions, 7 deletions
diff --git a/mkosi.postinst.chroot b/mkosi.postinst.chroot
index 1809a302bc..0d0eab93d2 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