Splitting an image into multiple partitions
Hello,
splitting your systems into different partitions often makes sense. So this means you have to create a number of different images, each comprising of a specific part of the full filesystem.
Doing that for one specific project is actually pretty easy, but then you loose all the flexibility of image.bbclass.
Adding an additional variable to image.bbclass and calling bbimage with an '-r' argument is also not a big deal, but this way you have to do all the work to put together the rootfs several times.
With only two partitions, you could just build the separate partition first (e.g. '/mnt1'), then delete that part from IMAGE_ROOTFS, and then build the rootfs.
But this doesn't work for more than two partitions.
IMHO an optimum solution would be to add an '--exclude' option to bbimage that you can give several times, then image.bbclass could just go through a list of partitions and create one after the other.
But maybe I just look into the wrong direction, and there's a much easier way for doing what I try to do.
Any hints are appreciated.
Detlef