Stock OpenWrt 25.12.0 upgrades the Flint 2 through eMMC. This variable cannot shrink its overlay. Connect over SSH to check your build.
Identify the board, release and mount
ubus call system board
cat /proc/mounts
cat /proc/partitions
dmesg | grep -Ei 'loop|mmc|overlay'
Read board_name and release. For a loop mount at /overlay, substitute its number for loop0 below. If the field is absent or storage is external, trace the device in boot logs. The overlayfs label alone is insufficient.
cat /sys/block/loop0/loop/backing_file
Follow the active upgrade function
Open platform.sh with less, read through the matching board branch and inspect the function it calls. The isolated terminal shows official source copies named platform, mmc and nand in the order below.
grep -nE 'glinet,gl-mt6000|emmc_do_upgrade|rootfs_data_max' /lib/upgrade/*.sh
less /lib/upgrade/platform.sh
platform.sh → emmc.sh · nand.sh

The NAND script reads the variable when sizing a new UBI data volume. The eMMC branch skips that step. Trace vendor and other builds separately. Without a matching call, stop and leave the boot environment untouched.

Is the upgrade backup too large?
df -h /overlay /tmp
sysupgrade -l
The last command only lists backup candidates. Save settings, container volumes and databases separately off the router and check recovery. Compare archive size with free space in /tmp and pause if tight. Permanent partitions require verified write boundaries and full disk recovery. These checks need no rollback.
Comments