systemd: Ensure uid/gid ranges are set deterministically

meson.build will fall back to greping /etc/login.defs for values of these
if they're not set. Different distros set them (Centos 7/8 does, Ubuntu
does not) so output was not deterministic. Avoid this by setting to the
default values. We now match the vaules from login.defs from shadow.

(From OE-Core rev: 77a6ac0ac266d71e4fe67fd332662081f30cd7bf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2020-12-19 11:20:31 +00:00
parent 81517d9c80
commit 4fab901c65

View File

@@ -213,6 +213,10 @@ EXTRA_OEMESON += "-Dnobody-user=nobody \
-Drootprefix=${rootprefix} \
-Ddefault-locale=C \
-Dmode=release \
-Dsystem-alloc-uid-min=101 \
-Dsystem-uid-max=999 \
-Dsystem-alloc-gid-min=101 \
-Dsystem-gid-max=999 \
"
# Hardcode target binary paths to avoid using paths from sysroot