Hi All,
On my device, we follow standard and mount_root will help on overlay mounting, like
root@OpenWrt:/# mount
/dev/root on /rom type squashfs (ro,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,hugetlb)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_0 on /overlay type ubifs (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
/dev/mtdblock3 on /etc/factory type ext4 (ro,noatime,block_validity,delalloc,nojournal_checksum,barrier,user_xattr)
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)
When I do "jffs2reset -y" to remove /overlay data and reboot and I will see this
root@OpenWrt:/# ls /overlay/upper/etc/config/
audiod firewall openvpn-opkg ucitrack
ddns fstab openvpn_recipes upnpd
dhcp luci rpcd videod
dropbear network system wireless
factory openvpn ttyd
My question is who will help to copy/modify the files in /etc/config/?
Please help. Thanks.