Bug 11003 - wic plugin rootfs_pcbios_ext crashes
Summary: wic plugin rootfs_pcbios_ext crashes
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.3
Assignee: Adrian
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-02-01 10:42 UTC by Ed Bartosh
Modified: 2017-03-30 20:48 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Bartosh 2017-02-01 10:42:55 UTC
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="rootwait rootfstype=ext4"

> wic create ./test.wks -e core-image-minimal

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


It would be good to add test case to the wic oe-selftest suite to ensure the plugin will not be broken in future.
Comment 1 Adrian 2017-03-30 20:48:05 UTC
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.