<?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>9396</bug_id>
          
          <creation_ts>2016-04-05 13:17:54 +0000</creation_ts>
          <short_desc>wic does not handle --fsoptions properly in kickstart file</short_desc>
          <delta_ts>2016-04-14 15:09:01 +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.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</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>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vesa Jääskeläinen">vesa.jaaskelainen</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60800</commentid>
    <comment_count>0</comment_count>
    <who name="Vesa Jääskeläinen">vesa.jaaskelainen</who>
    <bug_when>2016-04-05 13:17:54 +0000</bug_when>
    <thetext>When using kickstart file like following:

part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 1024 --size 64M --overhead-factor 1 --extra-space 0
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 1024 --size 1000M --overhead-factor 1 --extra-space 0
part /foo --ondisk mmcblk0 --fstype=ext4 --fsoptions=&quot;noatime,nodiratime,ro,nodev,nosuid&quot; --label foo --align 1024 --size 1000M --overhead-factor 1 --extra-space 0
part /bar --ondisk mmcblk0 --fstype=ext4 --fsoptions=&quot;noatime,nodiratime,rw,nodev,nosuid&quot; --label bar --align 1024 --size 5500M --overhead-factor 1 --extra-space 0

Then do:
wic create my-kickstart-file.wks -e my-image -o img/

SD card image is created with only first two partitions /boot and /.

If --fsoptions settings is removed altogether then we get all four partitions but with incorrect mounting options.

Alternative way to solve file system mount option problem is to give user an option to leave fstab as is and just create image file as requested. Now wic insist on modifying fstab with its own entries.

What I am expecting is to get SD card image with partitions:

/boot (image : files needed for booting)
/ (image : rootfs)
/foo (empty formatted partition)
/bar (emtpy formatted partition)

This was with yocto-2.0.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61131</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-04-13 09:47:32 +0000</bug_when>
    <thetext>Fix has been sent for review: http://lists.openembedded.org/pipermail/openembedded-core/2016-April/120212.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61228</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-04-14 15:09:01 +0000</bug_when>
    <thetext>The fix has been merged to master: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f7352ca2c483ef695c7276296d1f08b3ff4c1d2e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>