<?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>5230</bug_id>
          
          <creation_ts>2013-09-18 15:02:02 +0000</creation_ts>
          <short_desc>core-image-minimal now contains shadow</short_desc>
          <delta_ts>2013-10-16 10:47:50 +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.5</version>
          <rep_platform>All</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.5 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>bluelightning</cc>
    
    <cc>laurentiu.palcu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36878</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-09-18 15:02:02 +0000</bug_when>
    <thetext>core-image-minimal in master when built with sysvinit now contains shadow; in dylan that was not the case. This means /bin/login is now always provided by shadow, and thus the work that was done to provide that from busybox instead of tinylogin is not being utilised.

I have traced this to the addition of &quot;inherit useradd&quot; to sysvinit in the following commit:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f638364eff3b7a2de7953d154fb2451c51729911

I&apos;m not sure what the correct solution to this is but this is clearly not desirable; if nothing else, core-image-minimal is about 1.2M larger than it needs to be with shadow installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36975</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-09-19 14:39:37 +0000</bug_when>
    <thetext>A recent change to sysvinit inherited useradd, which caused the core-image-minimal
image to gain about 1.2M with the shadow based tools.  Since we now have a split
busybox (with setuid), it has all the functionalify of shadow, so depend on that by
default, if shadow is included in an image then the update-alternatives will kick in
and override the busybox utilities.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37144</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-09-24 21:05:20 +0000</bug_when>
    <thetext>Dug into this a little deeper today and it&apos;s getting interesting!  So simply 
changing the RDEPENDS to busybox causes other breakage, I think because the 
rootfs is missing some required file that the name groupadd needs to operate 
correctly, but I also realized that systemd provides halt and shutdown also.  
So began wonder if we should not have the shutdown group simply be part of the 
core base-files for oe-core that would remove the useradd from sysvinit, but we 
will still have useradd in systemd for log and systemd-journal groups.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37145</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-09-24 21:05:22 +0000</bug_when>
    <thetext>To Add shutdown group

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5f9ee672a0c187fab6f0a60237796808457e6569

and  

Remove the useradd from sysvinit

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e0a351b9131918d0ee7ade4c02f4e012a69dc837</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37975</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2013-10-16 10:47:50 +0000</bug_when>
    <thetext>Verified on master branch.
Commit ID: 2b5bac02196b8bd30d223d508f5f7d4300889fd7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>