Bug 11445 - wic: allow wic to support additional partition (e.g. 4th partition)
Summary: wic: allow wic to support additional partition (e.g. 4th partition)
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.4
Hardware: All Multiple
: Medium enhancement
Target Milestone: 2.5
Assignee: Chin Kooi KHOR
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-05-03 12:40 UTC by Chin Kooi KHOR
Modified: 2018-10-12 16:38 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chin Kooi KHOR 2017-05-03 12:40:16 UTC
Live image's install script cannot install the 4th partition. Enhancement request to support additional partition (e.g 4th partition).
Comment 1 Ed Bartosh 2017-05-04 08:27:32 UTC
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["ext2"]:           /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  ROOTFS_DIR["ext3"]:           /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  ROOTFS_DIR["ext4"]:           /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  ROOTFS_DIR["squash"]:         /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  ROOTFS_DIR["btrfs"]:          /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'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
Comment 2 Saul Wold 2017-09-25 15:56:53 UTC
Chin Kooi,  Ed provided an example of multiple partitions, I don'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.
Comment 3 Saul Wold 2017-11-09 04:21:51 UTC
The requester has withdrawn the enhancement request, therefore closing this bug.