Building multipartition images


morgan.hill@...
 

Hello all,

I would link to have a read only / partition and a writeable /etc
partition. The pain point I'm running into is populating /etc from the
rootfs. The quick solution is to script the creation of disk images
from the rootfs, outside the bitbake tool chain, however this seems non
ideal.

I understand that there is the possibility to create partitions using
wks files. The pain point with wks is that the if one specifies rootfs
as the source of both / and /etc partitions both will be populated with
the completed rootfs. The ideal scenario would be that the partitions
are created and mounted then the rootfs is copied on top and the fstab
is installed (as in the installation of other GNU/Linux distributions).

If anyone has solved or knows how to solve this problem neatly in an
image recipe for example some tips would be much appreciated.

Morgan Hill


Maciej Pijanowski
 


On 16.01.2020 11:41, morgan.hill@... wrote:
Hello all,

I would link to have a read only / partition and a writeable /etc
partition. The pain point I'm running into is populating /etc from the
rootfs. The quick solution is to script the creation of disk images
from the rootfs, outside the bitbake tool chain, however this seems non
ideal.

I understand that there is the possibility to create partitions using
wks files. The pain point with wks is that the if one specifies rootfs
as the source of both / and /etc partitions both will be populated with
the completed rootfs. The ideal scenario would be that the partitions
are created and mounted then the rootfs is copied on top and the fstab
is installed (as in the installation of other GNU/Linux distributions).

If anyone has solved or knows how to solve this problem neatly in an
image recipe for example some tips would be much appreciated.
Using wic you can exclude one directory from the partition and install
it into another partition. Example I've used some time ago:
https://github.com/3mdeb/meta-rte/blob/master/wic/sunxi-mmc-spl.wks#L4

Morgan Hill



    
-- 
Maciej Pijanowski
Embedded Systems Engineer
GPG: F1401D2E1CCB19EF
https://3mdeb.com | @3mdeb_com


morgan.hill@...
 

Using wic you can exclude one directory from the partition and
install
it into another partition. Example I've used some time ago:
https://github.com/3mdeb/meta-rte/blob/master/wic/sunxi-mmc-spl.wks#L4
Thanks, it looks like the rootfs-dir and exclude-path option is exactly
what I need.