rauc / meta-rauc-community

Yocto/OpenEmbedded meta layer with examples for integration of RAUC, the embedded Linux A/B update framework
MIT License
50 stars 54 forks source link

meta-rauc-raspberrypi: base-files_%.bbappend: Adding /home and /data … #43

Closed AtanasBunchev closed 1 year ago

AtanasBunchev commented 1 year ago

…to fstab

I'm doing a second pull request because the generated partitions are different in the kirkstone and the master branch.

Why when i build the image there appears an extra partition not mentioned in the wic file? /dev/mmcblk0p4 of type "Win95 Ext'd (LBA)"

ejoerns commented 1 year ago

Why when i build the image there appears an extra partition not mentioned in the wic file? /dev/mmcblk0p4 of type "Win95 Ext'd (LBA)"

Since the wks file has no --ptable gpt, it creates a MBR partition table. MBR supports only 4 partitions natively (referred to as 'primary' partitions). To add more, one entry is used as the start of the 'extended partitions' which are a simple linked list of further entries. This is what you see as /dev/mmcblk0p4 in your example. The extended partition is automatically created by partitioning programs typically.

https://en.wikipedia.org/wiki/Extended_boot_record