Problem with useradd command


#1

Hi,
I have the following rules in my bbfile:

inherit useradd

USERADD_PACKAGES = "${PN}"
GROUPADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "configuration" 
USERADD_PARAM_${PN} = "-d /tmp -G configuration blackbox; -m -d /tmp -s /usr/sbin/generate_config.sh -G configuration -p wtmoOHy.mTsUk technicien"

And I get the following warnings:

| DEBUG: Executing shell function useradd_sysroot
| Running groupadd commands...
| NOTE: Performing groupadd with [--root /home/me/yocto/build_bin/tmp/sysroots/swi-mdm9x15  configuration] and 10 times of retry
| WARNING: group configuration already exists, not re-creating it
| Running useradd commands...
| NOTE: Performing useradd with [--root /home/me/yocto/build_bin/tmp/sysroots/swi-mdm9x15 -d /tmp -G configuration blackbox] and 10 times of retry
| WARNING: user blackbox already exists, not re-creating it
| NOTE: Performing useradd with [--root /home/me/yocto/build_bin/tmp/sysroots/swi-mdm9x15  -m -d /tmp -s /usr/sbin/generate_config.sh -G configuration -p wtm$$$y.mTsUk technicien] and 10 times of retry
| WARNING: user technicien already exists, not re-creating it
| DEBUG: Shell function useradd_sysroot finished

Could you please tell me why?

Regards,
Alain


#2

You can check the patch introduced below to understand the warning. https://lists.yoctoproject.org/pipermail/meta-mentor/2013-June/000075.html


#3

Well ok, but I don’t understand here why it’s considered addind existing users to existing groups.
I don’t think the system already knows blackbox or technicien nor configuration group.