Hi @tmn505
Thanks. I double check rootdisk.c in libfstool, openwrt try to mount loop device for overlay.
Openwrt did not check the volume name on ext4 partition, so the result like following output, am I right? What I expect is openwrt will help me to mount ext4 partition with volume name 'rootfs_data' to be overlay.
root@OpenWrt:/# mount
/dev/mmcblk0p3 on /rom type squashfs (ro,relatime)
none on /rom/dev type tmpfs (rw,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup on /sys/fs/cgroup type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/loop0 on /overlay type ext4 (rw,noatime,data=ordered)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
/dev/mmcblk0p7 on /etc/factory type ext4 (ro,noatime,data=ordered)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
Hi @slh
Thanks. The information of nbg6817 is useful, I will refer it to implement the upgrade script.