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:
Richard Maw 2024-03-20 14:33:17 +00:00
parent 650421fb8e
commit 10ac38ddd3
3 changed files with 2 additions and 11 deletions

View file

@ -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

View file

@ -0,0 +1 @@
u testuser 4711 "Test User" /home/testuser

View file

@ -0,0 +1 @@
q /home/testuser 0700 4711 4711