-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently when we add otab update feature we are creating image with 4 partitions:
- boot A
- boot B
- rootfs A
- rootfs B
5th partition, rwoverlay, is dynamically created during first boot. We can move boot B and rootfs B creation to either script in initramfs that does this on first boot or better yet, to installer if we implement one.
This would simplify code in Yocto and allow us to modify B slot partitions a little easier, during creation, especially rootfs B. To modify just one file (/etc/fstab) I had to create separate Wic plugin.
The advantage of this feature would be that images (both base and swu update files) would be half their size.
What would need to be done:
- create slot B partitions dynamically during installation or first boot
- otab update would need to be modified
- add only slot A partitions to swu image
- update
sw-descriptionto use the same partition image for both slots - update
otab-shellpost-install script to do what we currently do when preparing second partition e.g. modifying/etc/fstaband command-line in UKI image. Same script/function could be used when preparing slot B, on first boot.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request