From 77a6ac0ac266d71e4fe67fd332662081f30cd7bf Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 19 Dec 2020 11:20:31 +0000 Subject: 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. Signed-off-by: Richard Purdie --- meta/recipes-core/systemd/systemd_247.2.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-core/systemd') 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 \ -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 -- cgit 1.2.3-korg