> -----Original Message----- > From: openembedded-core@lists.openembedded.org <openembedded- > c...@lists.openembedded.org> On Behalf Of Zoltan Boszormenyi via > lists.openembedded.org > Sent: den 24 augusti 2021 16:22 > To: openembedded-core@lists.openembedded.org > Subject: [OE-core] usermod in EXTRA_USERS_PARAMS is broken in master > > Hi, > > I tried to port my distro layer to Honister and > attempted to build an OS image. > > I have this in the image recipe: > > EXTRA_USERS_PARAMS += "usermod -P mypassword root; usermod -P mypassword2 > myuser;"
The 0002-Allow-for-setting-password-in-clear-text.patch patch has been dropped from shadow with the update to 4.9 (see commit 759df739). It previously renamed the -P option to -A and added an insecure -P <cleartext password> option. Replace the use of the -P <cleartext password> option with -p <encrypted password> and you should be good to go, also with Hardknott. > > and the error I got was: > > NOTE: my-test-image: Performing usermod with [-R > /data/yocto/tmp-sicom-glibc/work/genericx86_64-oe-linux/my-test-image/1.0- > r0/rootfs -P > mypassword root] > usermod: prefix must be an absolute path > ERROR: my-test-image: usermod command did not succeed. > WARNING: > /data/yocto/tmp-sicom-glibc/work/genericx86_64-oe-linux/my-test-image/1.0- > r0/temp/run.set_user_group.2583229:260 > exit 1 from 'exit 1' > > EXTRA_USERS_PARAMS has userdel and useradd commands > before the last two usermod, all of which succeed. > > I got the same error on both Fedora 33 and Fedora 34 hosts. > > It works with Hardknott. > > Best regards, > Zoltán Böszörményi //Peter
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#155265): https://lists.openembedded.org/g/openembedded-core/message/155265 Mute This Topic: https://lists.openembedded.org/mt/85111613/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-