Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to mount overlayfs #24

Open
wants to merge 1 commit into
base: chaos_calmer
Choose a base branch
from

Conversation

nicklgw
Copy link

@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
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