<?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>3917</bug_id>
          
          <creation_ts>2013-02-20 10:45:05 +0000</creation_ts>
          <short_desc>base-passwd.preinst:bitbake core-image-minimal failed</short_desc>
          <delta_ts>2013-03-01 05:47:51 +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>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.4 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>kai.kang</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhenfeng.zhao</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>29985</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-02-20 10:45:05 +0000</bug_when>
    <thetext>*env
Settings from local.conf:
PACKAGE_CLASSES ?= &quot;package_deb&quot;
IMAGE_FEATURES += &quot;package-management ssh-server-openssh&quot;

*problem
Run `bitbake core-image-minimal&apos; failed
&gt;&gt;log&lt;&lt;
cannot create $D${sysconfdir}/passwd: Directory nonexistent
cannot create $D${sysconfdir}/group: Directory nonexistent

*analysis
In meta/recipes-core/base-passwd/base-passwd_3.5.26.bb, 
.................
 if [ ! -e $D${sysconfdir}/passwd ]; then
 \tcat &lt;&lt; EOF &gt; $D${sysconfdir}/passwd
 &quot;&quot;&quot; + passwd + &quot;&quot;&quot;EOF
 fi
 if [ ! -e $D${sysconfdir}/group ]; then
 \tcat &lt;&lt; EOF &gt; $D${sysconfdir}/group
 &quot;&quot;&quot; + group + &quot;&quot;&quot;EOF
 fi
.................
It creates files `passwd&apos; and `group&apos; in `$D${sysconfdir}&apos;,
if `$D${sysconfdir}&apos; does not exist, run base-passwd.preinst
to install base-passwd at image ceation time failed.

*resolution
Check the existance of dir before file creation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30056</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-02-23 02:57:46 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5e3bbb652041954c02e1f8642c9f9874b1741a02</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30308</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-03-01 05:47:51 +0000</bug_when>
    <thetext>Verified with master branch: 0bedc0b80d9b46cbbf4a2c5e120a6aa52cbc7c2e

Steps:
1. In conf/local.conf:
    PACKAGE_CLASSES ?= &quot;package_deb&quot;
    IMAGE_FEATURES += &quot;package-management ssh-server-openssh&quot;
2. Run `bitbake core-image-minimal</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>