mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
mkosi: Remove testuser from base/mkosi.postinst.chroot
The testuser user is only needed for integration tests, which are used in the system user and this config can be provided as drop-ins instead of inline in postinst scripts.
This commit is contained in:
parent
650421fb8e
commit
10ac38ddd3
@ -65,17 +65,6 @@ fi
|
||||
mountpoint -q /etc/resolv.conf && umount /etc/resolv.conf
|
||||
rm -f /etc/resolv.conf
|
||||
|
||||
. /usr/lib/os-release
|
||||
|
||||
mkdir -p /usr/lib/sysusers.d
|
||||
cat >/usr/lib/sysusers.d/testuser.conf <<EOF
|
||||
u testuser 4711 "Test User" /home/testuser
|
||||
EOF
|
||||
mkdir -p /usr/lib/tmpfiles.d
|
||||
cat >/usr/lib/tmpfiles.d/testuser.conf <<EOF
|
||||
q /home/testuser 0700 4711 4711
|
||||
EOF
|
||||
|
||||
# sbsign is not available on CentOS Stream
|
||||
if command -v sbsign &>/dev/null; then
|
||||
# Ensure that side-loaded PE addons are loaded if signed, and ignored if not
|
||||
|
@ -0,0 +1 @@
|
||||
u testuser 4711 "Test User" /home/testuser
|
@ -0,0 +1 @@
|
||||
q /home/testuser 0700 4711 4711
|
Loading…
x
Reference in New Issue
Block a user