projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd57920
)
ci: Don't add testuser to wheel and systemd-journal groups
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Wed, 18 Sep 2024 13:38:43 +0000
(15:38 +0200)
committer
Yu 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
patch
|
blob
|
history
diff --git
a/mkosi.postinst.chroot
b/mkosi.postinst.chroot
index 1809a302bcf2318fc63266be7a0f44bce4a982ab..0d0eab93d25fcdd6e0ec67af076aa731344e9767 100755
(executable)
--- 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