<?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>11003</bug_id>
          
          <creation_ts>2017-02-01 10:42:55 +0000</creation_ts>
          <short_desc>wic plugin rootfs_pcbios_ext crashes</short_desc>
          <delta_ts>2017-03-30 20:48:05 +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>Scripts and Tools</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ed Bartosh">eduard.bartosh</reporter>
          <assigned_to name="Adrian">adrian.freihofer</assigned_to>
          <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>70326</commentid>
    <comment_count>0</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-02-01 10:42:55 +0000</bug_when>
    <thetext>This plugin needs to be fixed. It crashes when wic run with this .wks file:

part / --source rootfs-pcbios-ext --ondisk sda --fstype=ext4 --label rootfs --align 1024
bootloader --source rootfs-pcbios-ext --timeout=0 --append=&quot;rootwait rootfstype=ext4&quot;

&gt; wic create ./test.wks -e core-image-minimal

Traceback (most recent call last):
  File &quot;/home/ed/git/yocto/poky/scripts/lib/wic/plugins/imager/direct.py&quot;, line 77, in do_create
    creator.create()
  File &quot;/home/ed/git/yocto/poky/scripts/lib/wic/plugins/imager/direct.py&quot;, line 285, in create
    self.bootimg_dir, self.kernel_dir, self.native_sysroot)
  File &quot;/home/ed/git/yocto/poky/scripts/lib/wic/partition.py&quot;, line 181, in prepare
    kernel_dir, rootfs_dir, native_sysroot)
  File &quot;/home/ed/git/yocto/poky/scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py&quot;, line 163, in do_prepare_partition
    if part.rootfs is None:
AttributeError: &apos;Partition&apos; object has no attribute &apos;rootfs&apos;


It would be good to add test case to the wic oe-selftest suite to ensure the plugin will not be broken in future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71930</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian">adrian.freihofer</who>
    <bug_when>2017-03-30 20:48:05 +0000</bug_when>
    <thetext>There is a patch available on the mailing list which fixes the problem for i386 targets but not for x86_64. The root cause for failing on x86_64 could be in the wic plugin or in the user space installer for ext file systems of syslinux. Since the plugin seems not widely used, we decided to remove it from poky.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>