1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

mkosi/fedora: silence warning about sysusers config mismatch

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-05-08 14:40:39 +02:00
parent dede53943f
commit 385fb4e323

View File

@ -146,6 +146,34 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
)
fi
# Set various uids and gids for which Fedora has "soft static" allocations.
# Without this, we would get warning about mismatched sysusers.d entries
# between the files that we and Fedora's setup package install.
if grep -q '^ID=fedora' /etc/os-release; then
CONFIGURE_OPTS+=(
-Dadm-gid=4
-Daudio-gid=63
-Dcdrom-gid=11
-Ddialout-gid=18
-Ddisk-gid=6
-Dinput-gid=104
-Dkmem-gid=9
-Dkvm-gid=36
-Dlp-gid=7
-Drender-gid=105
-Dsgx-gid=106
-Dtape-gid=33
-Dtty-gid=5
-Dusers-gid=100
-Dutmp-gid=22
-Dvideo-gid=39
-Dwheel-gid=10
-Dsystemd-journal-gid=190
-Dsystemd-network-uid=192
-Dsystemd-resolve-uid=193
)
fi
meson setup "$BUILDDIR" "${CONFIGURE_OPTS[@]}"
fi