Hello,
I am trying to append the following to my .bb Image file:
inherit extrausers
EXTRA_USERS_PARAMS = " \
usermod -P password root; \
useradd -P pass2 misa; \
usermod -aG wheel misa;"
but the result is an error with:
ERROR: console-misa-image-2.7.3-r0 do_rootfs: console-misa-image: usermod command did not succeed.
ERROR: console-misa-image-2.7.3-r0 do_rootfs: Function failed: set_user_group (log file is located at /work/apalis/oe-core-misa/build/tmp-glibc/work/apalis_imx6_misa-angstrom-linux-gnueabi/console-misa-image/2.7.3-r0/temp/log.do_rootfs.24442)
If I remove the last “usermod -aG wheel misa” the build is fine.
I tried all combinations:
“usermod -a -G wheel misa” and also
“usermod -aG wheel misa”
with no success.
If I put :
EXTRA_USERS_PARAMS = " \
usermod -P password root; \
useradd -P pass2 misa; \
usermod -G wheel misa;"
the build is also ok.
Any ideas why I can’t use “usermod -aG wheel misa” ?
Thanks.
Nicola