chaos_calmer icon indicating copy to clipboard operation
chaos_calmer copied to clipboard

failed to mount overlayfs

Open nicklgw opened this issue 5 years ago • 1 comments

I found that overlayfs can't mount the right directory. so that all data which users modified was lost.

OK:  
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
NG:  
overlayfs:/tmp/root on / type overlay (rw,noatime,lowerdir=/,upperdir=/tmp/root/upper,workdir=/tmp/root/work)

the issue has found by the linux team. please see it. http://lists.infradead.org/pipermail/linux-mtd/2016-September/069185.html

nicklgw avatar Mar 07 '19 06:03 nicklgw

The issue has been founded by the linux team.

overlayfs does not issue a recursive rm on workdir, AFAICT you are supposed to cleanup workdir yourself before mounting. http://lists.infradead.org/pipermail/linux-mtd/2016-September/069185.html

nicklgw avatar Mar 07 '19 06:03 nicklgw