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

use writable overlays? #39

Closed
stsp opened this issue Jul 12, 2024 · 7 comments
Closed

use writable overlays? #39

stsp opened this issue Jul 12, 2024 · 7 comments

Comments

@stsp
Copy link

stsp commented Jul 12, 2024

Hi, have the writable overlays been considered for appimages? I am trying to package the proprietary programs (a DOS programs actually) that are not educated enough to write to tmp dirs or alike. I think fuse has fuse-overlayfs, so such a feature is not going to be difficult to implement?

@probonopd
Copy link
Member

Hi @stsp

It's doable by putting fuse-overlayfs into the AppImage, and then invoking it from the AppRun script.
See https://github.com/AppImage/AppImageKit/wiki/Bundling-Windows-applications#3-make-it-possible-to-use-a-read-only-wineprefix-1.

Such functionality goes into the AppImage payload, not into the runtime.

@stsp
Copy link
Author

stsp commented Aug 1, 2024

I actually thought your suggestion works... But it appears not. There is some problem, I think in fuse-overlayfs: it makes only the dir writable, but all existing files are still read-only, as strange as it may sound. I filled this ticket: containers/fuse-overlayfs#428
It has a ready-to-use AppImage test-case within.
So if you can help, please join that ticket. :)

@probonopd
Copy link
Member

Sounds like a bug to me.

@stsp
Copy link
Author

stsp commented Aug 5, 2024

Have you tried my reproducer? Does it reproduce for you as well?

@probonopd
Copy link
Member

Sorry, can't try to reproduce right now. Can you reproduce this in a simple test case that does not involve AppImage?

@stsp
Copy link
Author

stsp commented Aug 5, 2024

Ok, added a trivial test-case to the aforementioned ticket.

@stsp
Copy link
Author

stsp commented Aug 5, 2024

And found the problem: the files are not writable if in the lowerdir they belong to another user.

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

No branches or pull requests

2 participants