I want to mount my RO Filesystem using overlayFS - in order to use two layers FS (Lowerdir and Upperdir).
I tried the following mounting command -
mount -t overlayfs -o lowerdir=/,upperdir=/overlay "overlayfs:/overlay" /mnt && root=/mnt
That mounted /mnt as overlayFS, but set it as RO.
I tried the following in order to mount it as RW (meaning the Upperdir is RW) -
mount -t overlayfs -o rw,lowerdir=/,upperdir=/overlay "overlayfs:/overlay" /mnt && root=/mnt
Still no good.
Some general information -
I would like to mount the R/W FS as UBIFS, my RO FS is SquashFS I'm working on openWRT Thanks everyone!