diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-19 11:20:31 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-20 00:03:05 +0000 |
commit | 4fab901c65ff871fa31813894b11083cb8c0b20e (patch) | |
tree | 0e78292570dc1b52c0a48113d84eaf0b1a36e5c7 /meta/recipes-core | |
parent | 81517d9c806fce05348413bc6b6186eb26898e89 (diff) | |
download | poky-4fab901c65ff871fa31813894b11083cb8c0b20e.tar.gz |
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>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/systemd/systemd_247.2.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_247.2.bb b/meta/recipes-core/systemd/systemd_247.2.bb index 15f8cb3d71..5eea78eff3 100644 --- a/meta/recipes-core/systemd/systemd_247.2.bb +++ b/meta/recipes-core/systemd/systemd_247.2.bb | |||
@@ -213,6 +213,10 @@ EXTRA_OEMESON += "-Dnobody-user=nobody \ | |||
213 | -Drootprefix=${rootprefix} \ | 213 | -Drootprefix=${rootprefix} \ |
214 | -Ddefault-locale=C \ | 214 | -Ddefault-locale=C \ |
215 | -Dmode=release \ | 215 | -Dmode=release \ |
216 | -Dsystem-alloc-uid-min=101 \ | ||
217 | -Dsystem-uid-max=999 \ | ||
218 | -Dsystem-alloc-gid-min=101 \ | ||
219 | -Dsystem-gid-max=999 \ | ||
216 | " | 220 | " |
217 | 221 | ||
218 | # Hardcode target binary paths to avoid using paths from sysroot | 222 | # Hardcode target binary paths to avoid using paths from sysroot |