diff mbox series

poky/poky-tiny: Explicitly exclude `shadow`

Message ID 20230730173358.18270-1-alex.kiernan@gmail.com (mailing list archive)
State New
Headers show
Series poky/poky-tiny: Explicitly exclude `shadow` | expand

Commit Message

Alex Kiernan July 30, 2023, 5:33 p.m. UTC
`login` from busybox has explicit heuristics to handle CONFIG_MULTIUSER
unset (i.e. a kernel without non-root users, groups or capabilities),
bringing in the shadow version of `login` causes obscure failures at
runtime ("setgid: Function not implemented"), instead exclude it here so
anyone who includes it (likely accidentally) will at least get a build
time failure.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---

 meta-poky/conf/distro/poky-tiny.conf | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-poky/conf/distro/poky-tiny.conf b/meta-poky/conf/distro/poky-tiny.conf
index f65d2dabf3af..728d161d59af 100644
--- a/meta-poky/conf/distro/poky-tiny.conf
+++ b/meta-poky/conf/distro/poky-tiny.conf
@@ -122,3 +122,7 @@  SKIP_RECIPE[core-image-weston] = "not buildable with poky-tiny"
 
 # Disable python usage in opkg-utils since it won't build with tiny config
 PACKAGECONFIG:remove:pn-opkg-utils = "python"
+
+# If shadow-base is brought into the image, logins will fail because it
+# doesn't have the heuristics to work when CONFIG_MULTIUSER is unset.
+PACKAGE_EXCLUDE:poky-tiny = "shadow-base"