<?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>8522</bug_id>
          
          <creation_ts>2015-10-15 13:28:50 +0000</creation_ts>
          <short_desc>dracut_git.bb does not pull in all dependencies</short_desc>
          <delta_ts>2015-10-22 20:16:49 +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>Other YP Layers</product>
          <component>layers</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gatis Paeglis">gatis.paeglis</reporter>
          <assigned_to name="Joe Slater">joe.slater</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>55348</commentid>
    <comment_count>0</comment_count>
    <who name="Gatis Paeglis">gatis.paeglis</who>
    <bug_when>2015-10-15 13:28:50 +0000</bug_when>
    <thetext>Layer/recipe: meta-initramfs/recipes-devtools/dracut/dracut_git.bb

Dracut git repository contains a file &quot;dracut.spec&quot; which lists:

Requires: util-linux &gt;= 2.21

But dracut_git.bb only &quot;cherry picks&quot; some parts of the util-linux:

http://cgit.openembedded.org/meta-openembedded/tree/meta-initramfs/recipes-devtools/dracut/dracut_git.bb

where:

RDEPENDS_${PN} = &quot;findutils cpio util-linux-blkid util-linux-getopt bash ldd&quot;

So when trying to run the following drucut command on a device:

./dracut --host-only

it fails, because &quot;findmnt&quot; and &quot;setsid&quot; commands are missing from a device.

Changing RDEPENDS_${PN} to include &quot;util-linux&quot; fixes the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55358</commentid>
    <comment_count>1</comment_count>
    <who name="Gatis Paeglis">gatis.paeglis</who>
    <bug_when>2015-10-15 15:08:58 +0000</bug_when>
    <thetext>Of course pulling in the whole util-linux also does not seem optimal. Only I am unsure how to determine which binaries exactly are required by dracut.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55373</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-16 08:57:04 +0000</bug_when>
    <thetext>Both setsid and findmnt are in the util-linux package, so that&apos;s exactly the right thing to do.

However, dracut isn&apos;t part of oe-core so it shouldn&apos;t be tracked here.  As you have a patch now, can you send it to the openembedded-devel mailing list?

(in our bug triage Randy expressed interest in this, so I&apos;m moving it back to Layers and assigning to him)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55375</commentid>
    <comment_count>3</comment_count>
    <who name="Gatis Paeglis">gatis.paeglis</who>
    <bug_when>2015-10-16 09:07:54 +0000</bug_when>
    <thetext>If Randy wants wants to take care of this issue, he can go ahead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55390</commentid>
    <comment_count>4</comment_count>
    <who name="Gatis Paeglis">gatis.paeglis</who>
    <bug_when>2015-10-16 12:08:47 +0000</bug_when>
    <thetext>Just a note:

I see that in earlier versions of dracut recipe it contained &quot;util-linux&quot; as a dependency:

# &apos;getopt&apos; is in the util-linux main package
RDEPENDS_${PN} = &quot;systemd findutils cpio util-linux-blkid util-linux bash ldd&quot;

And then they tried to optimize things by including only some sub-set of util-linux-* and that is why findmnt and setsid suddenly disappeared in later builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55629</commentid>
    <comment_count>5</comment_count>
    <who name="Joe Slater">joe.slater</who>
    <bug_when>2015-10-22 20:16:49 +0000</bug_when>
    <thetext>Patch is in meta-initramfs on master-next.  Commit b5ecfed.

Bugs for meta-initramfs go to openembedded-devel.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>