immortalwrt/package/base-files/files
Daniel Golle ad2936d4df sysupgrade-nand: allow limiting rootfs_data by setting env variable
Check if firmware environment variable 'rootfs_data_max' exists and is
set to a numerical value greater than 0. If so, limit rootfs_data
volume to that size instead of using the maximum available size.

This is useful on devices with lots of flash where users may want to
have eg. a volume for persistent logs and statistics or for external
applications/containers. Persistence on rootfs overlay is limited by
the size of memory available during the sysugprade process as that
data needs to be copied to RAM while the volume is being recreated
during sysupgrade. Hence it is unsuitable for keeping larger amounts
of data accross upgrade which makes additional volume(s) for
application data desirable.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-03-03 12:28:52 +08:00
..
bin Merge Mainline 2021-02-07 16:59:21 +08:00
etc Merge Mainline 2021-02-16 14:50:17 +08:00
lib sysupgrade-nand: allow limiting rootfs_data by setting env variable 2021-03-03 12:28:52 +08:00
rom fix permission 2019-09-30 14:27:46 +08:00
sbin base-files: sysupgrade: add function for conffiles retrieval 2020-12-31 17:49:08 +08:00
usr dropbear: bump to 2019.78 2020-03-22 18:35:41 +08:00