<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2280</bug_id>
          
          <creation_ts>2012-04-11 16:52:27 +0000</creation_ts>
          <short_desc>/etc/group not exists while executing useradd/groupadd scripts</short_desc>
          <delta_ts>2012-04-12 00:07:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dongxiao Xu">dongxiao.xu</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>shane.wang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>20195</commentid>
    <comment_count>0</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-04-11 16:52:27 +0000</bug_when>
    <thetext>Steps to reproduce:
1) Change core-image-basic.bb to be following:

DESCRIPTION = &quot;A foundational basic image without support for X that can be \
reasonably used for customization.&quot;

IMAGE_FEATURES += &quot;apps-console-core ssh-server-openssh&quot;

IMAGE_INSTALL = &quot;\
    task-core-basic \
    task-core-ssh-openssh \
    task-core-apps-console \
    task-core-boot \
    &quot;
inherit core-image

2) run &quot;bitbake core-image-basic&quot;

We will meet rootfs error and the log is something like:

groupadd: group &apos;netdev&apos; already exists
grep: /distro/sdb/build-basic/tmp/work/qemux86-poky-linux/hob-image-hob-basic-1.0-r0/rootfs/etc/group: No such file or directory
WARNING: groupadd command did not succeed. Retrying...
groupadd: group &apos;netdev&apos; already exists
grep: /distro/sdb/build-basic/tmp/work/qemux86-poky-linux/hob-image-hob-basic-1.0-r0/rootfs/etc/group: No such file or directory
WARNING: groupadd command did not succeed. Retrying...
groupadd: group &apos;netdev&apos; already exists
grep: /distro/sdb/build-basic/tmp/work/qemux86-poky-linux/hob-image-hob-basic-1.0-r0/rootfs/etc/group: No such file or directory
WARNING: groupadd command did not succeed. Retrying...
groupadd: group &apos;netdev&apos; already exists
grep: /distro/sdb/build-basic/tmp/work/qemux86-poky-linux/hob-image-hob-basic-1.0-r0/rootfs/etc/group: No such file or directory
WARNING: groupadd command did not succeed. Retrying...
groupadd: group &apos;netdev&apos; already exists
grep: /distro/sdb/build-basic/tmp/work/qemux86-poky-linux/hob-image-hob-basic-1.0-r0/rootfs/etc/group: No such file or directory
WARNING: groupadd command did not succeed. Retrying...
ERROR: tried running groupadd command 10 times without success, giving up
dbus-1                      ##################################################
 Adding system startup for /distro/sdb/build-basic/tmp/work/qemux86-poky-linux/hob-image-hob-basic-1.0-r0/rootfs/etc/init.d/dbus-1.
kernel-module-uvesafb       ##################################################
libusb-compat               ##################################################
base-passwd                 ##################################################
shadow                      ##################################################
...


I checked that dbus-1 RDEPENDS on base-passwd, however from the above log we can see that, system tries to install dbus-1 firstly, and then base-passwd, causing the useradd/groupadd scripts panic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20202</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-04-11 23:52:00 +0000</bug_when>
    <thetext>I think RP has resolved this, but please verify.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20203</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-04-12 00:07:03 +0000</bug_when>
    <thetext>Yes, this is now fixed in oe-core and poky master as of:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0923ee40ae59133c91a95e0727eb1ab95aca13b8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>