<?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>5753</bug_id>
          
          <creation_ts>2014-01-23 10:23:59 +0000</creation_ts>
          <short_desc>wic rootfs creation use wrong file owner</short_desc>
          <delta_ts>2014-09-22 06:43:22 +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>deployment</component>
          <version>unspecified</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.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Damien Merenne">dam</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>andrax.g.necula</cc>
          
          <qa_contact name="Andra Necula">andrax.g.necula</qa_contact>
          <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>40003</commentid>
    <comment_count>0</comment_count>
    <who name="Damien Merenne">dam</who>
    <bug_when>2014-01-23 10:23:59 +0000</bug_when>
    <thetext>When creating an image using the wic tool, the ext3 fs is created with the current user as owner of all the file instead of root. Adding fakeroot 

scripts/lib/mic/kickstart/custom_commands/partition.py:240

populate_cmd = &quot;fakeroot &quot; + populate_script + &quot; &quot; + image_rootfs + &quot; &quot; + rootfs

fixes the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40011</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-01-23 15:40:45 +0000</bug_when>
    <thetext>Tom, this surprises me - is there perhaps a usage issue here?

Damien, what was the exact command you issued?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40016</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-01-23 15:48:37 +0000</bug_when>
    <thetext>Also please specify which version of the build system you&apos;re using - there was a problem in initial versions, but it was fixed by using pseudo (in place of fakeroot).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40017</commentid>
    <comment_count>3</comment_count>
    <who name="Damien Merenne">dam</who>
    <bug_when>2014-01-23 16:25:33 +0000</bug_when>
    <thetext>poky-dora-10.0.0

and the command I used is with a custom wks file that&apos;s just the directdisk.wks changed to install on sdb:


part /boot --source bootimg --ondisk sdb --fstype=msdos --label boot --active --align 1024
part / --source rootfs --ondisk sdb --fstype=ext3 --label platform --align 1024

bootloader  --timeout=0  --append=&quot;rootwait rootfstype=ext3 console=tty0&quot;


wic create directdisk-sdb.wks -e my-custom-image</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40018</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-01-23 16:34:46 +0000</bug_when>
    <thetext>Please try poky-dora-10.0.1 i.e. the 1.5.1 release - the problem should be fixed in that update.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40305</commentid>
    <comment_count>5</comment_count>
    <who name="Damien Merenne">dam</who>
    <bug_when>2014-02-12 16:09:18 +0000</bug_when>
    <thetext>Indeed, it fixes the problem. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40316</commentid>
    <comment_count>6</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-02-12 23:52:16 +0000</bug_when>
    <thetext>Fixed in 1.5.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45738</commentid>
    <comment_count>7</comment_count>
    <who name="Andra Necula">andrax.g.necula</who>
    <bug_when>2014-09-22 06:43:22 +0000</bug_when>
    <thetext>Verified in Dora 1.5.1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>