[yocto] separate partition support

Moore, Thomas (FtWorth) Thomas.Moore2 at ATK.COM
Mon Jan 5 16:01:17 PST 2015


I'm actually experimenting with this today.

Per the Development Manual, my first attempt was to use wic. While I was able to create an image with multiple partitions, there appears to be no way to split up the rootfs image that is created amongst the multiple partitions. Below is the wks file I created for my test:

part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024
part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align 1024
part /var --source rootfs --ondisk sda --fstype=ext3 --label data --align 1024

bootloader  --timeout=0  --append="rootwait rootfstype=ext3 video=vesafb vga=0x318 console=tty0"

After running wic, I was able to examine the resulting image and there were three partitions. However, the second and third partitions (/ and /var) both contained the entire rootfs. In this case, I was hoping that wic would realize that I only wanted the contents /var in the third partition and to also not be included in the second partition.

While it may be possible to create a new plugin for wic to achieve my desired result, I'm not sure if it would be possible for the instance of the plugin creating the / partition to be aware of the other partitions and their mount points to be able to exclude those folders from the / partition. Does anyone have any thoughts on this?

Thanks,

Thomas Moore

From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Andre Marschalek
Sent: Monday, January 05, 2015 5:50 PM
To: yocto at yoctoproject.org
Subject: [yocto] separate partition support

hi,

splitting the root file filesystem into different partitions is a common task and supported from every operating system during install and should be also supported from yocto's build system
based on the current available documentation it seems impossible to accomplish this task, the only available result is one full blown image containing the root partition

currently the only idea i had is to run bitbake which will generate the root image containing everything
create afterwards my own images with the desired size (also a new root image because in this case IMAGE_ROOTFS_SIZE does not reflect the ending image size)
mount every image and move the directories from the bitbake produced image into this new images
and finally flash that images to my devices

what do you mean?
should this basic core functionality part of yocto's build process without an overhead for everyone to create isolated solutions?
do you see a better workaround as to create new images and movements after the build process?

thank you in advance

br
Andre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150106/23d98d04/attachment.html>


More information about the yocto mailing list