openwrt/package/base-files/files/lib
Daniel Golle 397de50089
base-files: Make sure rootfs_data_max is considered
For sysupgrade on NAND/UBI devices there is the U-Boot environment
variable rootfs_data_max which can be used to limit the size of the
rootfs_data volume created on sysupgrade.
This stopped working reliable with recent kernels, probably due to a
race condition when reading the number of free erase blocks from sysfs
just after removing a volume.
Change the script to just try creating rootfs_data with the desired
size and retry with maximum size in case that fails. Hence calculating
the available size in the script can be dropped which works around the
problem.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-02-17 15:15:42 +00:00
..
functions base-files: add minimal mmc support 2021-11-01 00:56:51 +01:00
preinit base-files: bring up vlan interface too 2021-06-22 23:23:00 +02:00
upgrade base-files: Make sure rootfs_data_max is considered 2022-02-17 15:15:42 +00:00
functions.sh base-files: allow specifiying rootdev for find_mmc_part 2021-11-01 18:00:42 +00:00