<?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>12254</bug_id>
          
          <creation_ts>2017-10-19 21:59:53 +0000</creation_ts>
          <short_desc>Blank Lines in volatile files duplicated the previous one</short_desc>
          <delta_ts>2017-10-20 12:58:25 +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>All</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="Joshua Watt">JPEWhacker</reporter>
          <assigned_to name="Joshua Watt">JPEWhacker</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>77717</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2017-10-19 21:59:53 +0000</bug_when>
    <thetext>If the populate-volatile.sh script encounters a blank line, it duplicates the previous one due to none of the column variables getting new values. Under normal circumstances, this will not manifest in any visible manner. However, if a read-only-rootfs is being used, this causes the host directory path to be leaked into the root file system. This is caused by TNAME getting ROOT_DIR prepended to it twice, once for the actual parsed line, and then again when the blank line is &quot;parsed&quot;.

For example, if your rootfs working directory is at /home/me/rootfs, and you have a volatiles file like:

 d root root 0755 /foo/bar
 

Then your rootfs in the working directory will get:

 /home/me/rootfs/foo/bar

And then another entry for the blank line that looks like

 /home/me/rootfs/home/me/rootfs/foo/bar

Then end effect of which is that the final root file system has the paths
 /foo/bar
 /home/me/rootfs/foo/bar</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77729</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2017-10-20 12:58:25 +0000</bug_when>
    <thetext>Nevermind. This was fixed in 438d1230511f0b183e82df3b9d410f0cabcb59d0. That&apos;s what I get for using old versions of Poky

Sorry for the churn</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>