> -----Original Message----- > From: Ross Burton <[email protected]> > Sent: den 22 maj 2026 16:27 > To: Peter Kjellerstedt <[email protected]> > Cc: [email protected] > Subject: Re: [OE-core] [PATCH 4/5] useradd_base.bbclass: Emulate the > groupmems command using usermod > > On 12 May 2026, at 20:04, Peter Kjellerstedt via lists.openembedded.org > <[email protected]> wrote: > > The groupmems command does to support the --prefix option, which is > > being used since commit a7b846ba7d6d63a5e59939d75d9c5fe3e4cbb0e9. > > However, the groupmems command can easily be emulated using the usermod > > command. > > This emulation assumes that the only valid GROUPMEMS_PARAM are of the form > '—add [user] —group [group]’ and never used '—delete’, but it looks like > the shell script actually mandates that. Might be worth a note that > whilst it appears that GROUPMEMS_PARAM supports arbitrary options, it > actually doesn’t. > > Ross
You are correct. I have sent an updated patch series, where I have updated the function to fail if the user and/or the group are not specified. This would happen before as well, but now it shows an appropriate error message rather than the help output from usermod. //Peter
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#237607): https://lists.openembedded.org/g/openembedded-core/message/237607 Mute This Topic: https://lists.openembedded.org/mt/119284989/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
