You need to do this with a class-target qualifier. Otherwise this removal will be done for shadow-native too, and none of the user management will work.
Alex On Thu, 11 Jul 2024 at 11:56, Joel GUITTET via lists.yoctoproject.org <jguittet.opensource=witekio....@lists.yoctoproject.org> wrote: > > Hello, > > I'm building an image removing userdel and usermod to reduce image size: > > shadow_%.bbappend: > > do_install:append () { > rm -f ${D}${sbindir}/usermod > rm -f ${D}${sbindir}/userdel > } > > And I would like to set the root password so my image inherit extrausers and > use EXTRA_USERS_PARAMS = " usermod -p 'xxxxx' root; " > > When doing this, do_rootfs of the image fails with the error "usermod command > did not succeed". > > I'm surprised to notice that the usermod command of EXTRA_USERS_PARAMS which > is executed is the one in the image itself ! Is it expected behavior ? This > looks like a strong dependency... > > Joel > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63469): https://lists.yoctoproject.org/g/yocto/message/63469 Mute This Topic: https://lists.yoctoproject.org/mt/107159697/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-