On Fri, 2023-07-28 at 15:01 +0100, Alex Kiernan wrote: > On Fri, Jul 28, 2023 at 1:52 PM Jon Mason <[email protected]> wrote: > > > > On Fri, Jul 28, 2023 at 5:40 AM Alex Kiernan <[email protected]> wrote: > > > > > > To avoid errors from eudev/udev we need an sgx group, but if we add it > > > via groupadd that causes shadow login to be brought into an image, which > > > causes images which have CONFIG_MULTIUSER unset to fail with `setgid: > > > Function not implemented` as shadow's login doesn't implement the > > > heuristics which busybox has to handle this kernel configuration. > > > > Firstly, thank you very much for fixing this. I was having lots of > > trouble with it. > > > > I just wanted to point out that the underlying sgx issue is unique to > > Intel/x86. So, it might make sense to only apply this patch in this > > case. > > > > You get the noise from eudev on everything (I'm deploying onto > aarch64), I guess because it fails at parse time and everyone gets the > same rules. Obviously we could try for an sgx only rule on x86, but > tbh that feels like way too much effort!
FWIW I agree and merged this as the best of the bad options. > > I think we want something like this on poky-tiny so this doesn't regress: > > 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" A patch would be welcome for that please! Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#185051): https://lists.openembedded.org/g/openembedded-core/message/185051 Mute This Topic: https://lists.openembedded.org/mt/100407464/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
