1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

Merge pull request #31870 from CodethinkLabs/base-image-tweaks

Base image tweaks
This commit is contained in:
Daan De Meyer 2024-03-25 18:04:49 +01:00 committed by GitHub
commit 1654330d31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 11 deletions

View File

@ -52,4 +52,6 @@ Packages=
vim-common
InitrdPackages=
setools
selinux-policy
tpm2-tools

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