[meta-freescale] add user in image recipe

Matthias.Heise at atlas-elektronik.com Matthias.Heise at atlas-elektronik.com
Thu Nov 27 00:19:34 PST 2014

I just tried to add a user in the same way the root password is changed : with a ROOTFS_POSTPROCESS_COMMAND like this :


	useradd -p '\$6\$53uYm/0Fnll\$Nc0RbHSvqRrd63Tw98TO3V1n25ORK9oR4QHqRIriXzLy0il/7.LIacX7mz7RJ1tdPIWiCJLNyQa7dKBNURqEg1' fstuser;

When baking I get this (the last bit of the log.do_rootfs):

NOTE: Executing set_root_password ...
DEBUG: Executing shell function set_root_password
DEBUG: Shell function set_root_password finished
NOTE: Executing add_a_user ...
DEBUG: Executing shell function add_a_user
useradd: /etc/passwd.15710: Permission denied
useradd: cannot lock /etc/passwd; try again later.
WARNING: exit code 1 from a shell command.
DEBUG: Python function do_rootfs finished
ERROR: Function failed: add_a_user (log file is located at /home/theuser/fsl-community-bsp/build/tmp/work/wandboard_quad-poky-linux-gnueabi/core-at-image-minimal/1.0-r0/temp/log.do_rootfs.9264)

Maybe the initial method with the EXTRA_USER_PARAMS failed because of the same reason (but didn't break baking) ?
Any ideas to that ?
Thank you

-----Ursprüngliche Nachricht-----
Von: Heise, Matthias 
Gesendet: Donnerstag, 27. November 2014 08:53
An: 'Uhl, Joe'; 'meta-freescale at yoctoproject.org'
Betreff: AW: [meta-freescale] add user in image recipe

any more ideas regarding the "useradd" ? it is still not working from within recipe

-----Ursprüngliche Nachricht-----
Von: Heise, Matthias 
Gesendet: Dienstag, 18. November 2014 14:02
An: 'Uhl, Joe'; meta-freescale at yoctoproject.org
Betreff: AW: [meta-freescale] default root password or password request

Tried that, no difference

>>>>Try adding single quotes around the encrypted password like this:

>>>>EXTRA_USER_PARAMS = "useradd -p '\$6\$53uYm/0Fnll\$Nc0RbHSvqRrd63Tw98TO3V1n25ORK9oR4QHqRIriXzLy0il/7.LIacX7mz7RJ1tdPIWiCJLNyQa7dKBNURqEg1' fstuser;"

Confidentiality Requirement: This communication, including any attachment(s), may contain confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, you are hereby notified that you have received this communication in error and any unauthorized review, use, disclosure, dissemination, distribution or copying of it or its contents is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by telephone or e-mail and destroy all copies of this communication and any attachments.

More information about the meta-freescale mailing list