Skip to content

failed to mount overlayfs#24

Open
nicklgw wants to merge 1 commit intoopenwrt:chaos_calmerfrom
nicklgw:feature/mount-overlay
Open

failed to mount overlayfs#24
nicklgw wants to merge 1 commit intoopenwrt:chaos_calmerfrom
nicklgw:feature/mount-overlay

Conversation

@nicklgw
Copy link
Copy Markdown

@nicklgw nicklgw commented Mar 7, 2019

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
Copy link
Copy Markdown
Author

nicklgw commented Mar 7, 2019

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

ZigFisher referenced this pull request in ZigFisher/openipc-1.0 Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant