projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f457acb
)
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
Luca Boccassi
<luca.boccassi@gmail.com>
Wed, 25 Sep 2024 19:27:25 +0000
(21:27 +0200)
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.
(cherry picked from commit
1d5b4317cd0140c043495f946e5352b188f3bec0
)
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