victronenergy / venus

Victron Energy Unix/Linux OS
https://github.com/victronenergy/venus/wiki
575 stars 70 forks source link

Beaglebone: make it look for swu version 2 #812

Closed mpvader closed 3 years ago

mpvader commented 3 years ago

Background: Venus GXes were first produced with "small" partition sizes. And somewhere in 2018 that was changed to "large". Venus OS rootfs is slowly growing in size, and recently we had to reduce the standard freespace allocation by OE to keep the images small enough to fit on "small" variant. Also, per v2.70, a script was added that will automatically increase the partition sizes at boot (without losing data) from "small" to "large". Which is a fine status quo, until Venus OS really outgrows the "small" partition sizes.

This issue is to prepare for that, by introducing a swu version 2. By having that, we can force customers using < v2.70 to always update to v2.70 first. Which at boot will increase the partition sizes; after which customer can continue updating to later (larger) versions of Venus OS.

For customers using the online update system, all will then go by itself. Customers using offline updates will have to manually put in a v2.70 (or some tbd latest version). Boot that, and will then be able to move to later versions again.

mansr commented 3 years ago

The changes are in https://github.com/victronenergy/meta-victronenergy/commits/mans/bbb-swu. The first commit should be included in a 2.7x release, the rest only for 2.80. This ensures that systems running older versions will first update to the latest 2.7x. This version will resize the root partitions and start using swu version 2. Builds of 2.80 can thus drop venus-swu-1, the rootfs size adjustment, and the repartioning script.