<?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>11445</bug_id>
          
          <creation_ts>2017-05-03 12:40:16 +0000</creation_ts>
          <short_desc>wic: allow wic to support additional partition (e.g. 4th partition)</short_desc>
          <delta_ts>2018-10-12 16:38:34 +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.4</version>
          <rep_platform>All</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>enhancement</bug_severity>
          <target_milestone>2.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chin Kooi KHOR">chin.kooi.khor</reporter>
          <assigned_to name="Chin Kooi KHOR">chin.kooi.khor</assigned_to>
          <cc>eduard.bartosh</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72996</commentid>
    <comment_count>0</comment_count>
    <who name="Chin Kooi KHOR">chin.kooi.khor</who>
    <bug_when>2017-05-03 12:40:16 +0000</bug_when>
    <thetext>Live image&apos;s install script cannot install the 4th partition. Enhancement request to support additional partition (e.g 4th partition).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73032</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-05-04 08:27:32 +0000</bug_when>
    <thetext>Here is an example of wks file with a lot of partitions:

$ cat test.wks 
part ext2        --fstype ext2                --source rootfs
part ext3        --fstype ext3                --source rootfs
part ext4        --fstype ext4                --source rootfs
part squash      --fstype squashfs            --source rootfs
part btrfs       --fstype btrfs    --size 40M --source rootfs
part swap        --fstype swap     --size 1M

part emptyvfat   --fstype vfat     --size 1M
part emptymsdos  --fstype msdos    --size 1M
part emptyext2   --fstype ext2     --size 1M
part emptyext3   --fstype ext3     --size 1M
part emptyext4   --fstype ext4     --size 1M
part emptybtrfs  --fstype btrfs    --size 100M

You can generate wic image from this file this way:

$ wic create test.wks -e core-image-minimal
INFO: Creating image(s)...

WARNING: bootloader config not specified, using defaults

INFO: The new image(s) can be found here:
  ./test-201705041111-sda.direct

The following build artifacts were used to create the image(s):
  ROOTFS_DIR[&quot;ext2&quot;]:           /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  ROOTFS_DIR[&quot;ext3&quot;]:           /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  ROOTFS_DIR[&quot;ext4&quot;]:           /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  ROOTFS_DIR[&quot;squash&quot;]:         /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  ROOTFS_DIR[&quot;btrfs&quot;]:          /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  BOOTIMG_DIR:                  /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/usr/share
  KERNEL_DIR:                   /home/ed/git/yocto/poky/build/tmp/deploy/images/qemux86-64
  NATIVE_SYSROOT:               /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native

INFO: The image(s) were created using OE kickstart file:
  test.wks


and list partitions this way:

$ /sbin/fdisk -l ./test-201705041111-sda.direct

Disk ./test-201705041111-sda.direct: 233.3 MiB, 244604928 bytes, 477744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x10118df4

Device                           Boot  Start    End Sectors   Size Id Type
./test-201705041111-sda.direct1            1  49130   49130    24M 83 Linux
./test-201705041111-sda.direct2        49131  98260   49130    24M 83 Linux
./test-201705041111-sda.direct3        98261 147390   49130    24M 83 Linux
./test-201705041111-sda.direct4       147391 477743  330353 161.3M  f W95 Ext&apos;d (LBA)
./test-201705041111-sda.direct5       147392 154151    6760   3.3M 83 Linux
./test-201705041111-sda.direct6       154153 260648  106496    52M 83 Linux
./test-201705041111-sda.direct7       260650 262697    2048     1M 82 Linux swap / Solaris
./test-201705041111-sda.direct8       262699 264746    2048     1M  c W95 FAT32 (LBA)
./test-201705041111-sda.direct9       264748 266795    2048     1M  6 FAT16
./test-201705041111-sda.direct10      266797 268844    2048     1M 83 Linux
./test-201705041111-sda.direct11      268846 270893    2048     1M 83 Linux
./test-201705041111-sda.direct12      270895 272942    2048     1M 83 Linux
./test-201705041111-sda.direct13      272944 477743  204800   100M 83 Linux</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77111</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-09-25 15:56:53 +0000</bug_when>
    <thetext>Chin Kooi,  Ed provided an example of multiple partitions, I don&apos;t remember exactly the original need, I think this had to do with installing from Live Image?  Or is it WIC related?  The summary and description are not clear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78093</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-11-09 04:21:51 +0000</bug_when>
    <thetext>The requester has withdrawn the enhancement request, therefore closing this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>