-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Versioning based on btrfs snapshots #3420
base: main
Are you sure you want to change the base?
Conversation
I have updated the PR today: |
Does this work within a flatpak sandbox? |
Good question @Henry-Hiles. So far I have only tested this without flatpak. The question contains two subparts. The first one is, that libbtrfsutil (and it's dependencies and Python bindings) must be added to bottle's flatpak. The other question is, if the flatpak sandbox intercepts the btrfs specific features? |
1bfd389
to
a3544b0
Compare
It was quite clunky (and a flatpak expert might laugh at me), but I was able to test this branch in a flatpak today. I followed the meson build instruction in Bottles' Readme.md, and then build the release tar ball https://github.com/kdave/btrfs-progs/releases/tag/v6.9.2 inside the flatpak's bash shell like this:
Then bottles can
|
Get rid of the else branch by moving common code out of if-else.
7b51fce
to
4f68fcb
Compare
... but notice the many TODOs
4f68fcb
to
234b633
Compare
Today I dived into flatpak building, and added the needed btrfs-progs package to bottles' flatpak build. I also moved the corresponding git commit back into the history, in order to avoid commits, where bottles' flatpak fails to start due to the missing |
Hey @Borgvall, are you still interested in working on this? It seems like, based on your tests, the functionality works inside Flatpak, so I'm all for pushing this feature in the future. I personally don't really like the current implementation because it's largely unmaintained. |
Description
I actually like the bottles application for managing wine prefixes. However it itches me, that I can not create the bottles as btrfs subvolumes, which I want to use it with my backup solution, to backup/restore bottles independently. I also tried to create the subvolume in place before creating a bottle, but bottles is appending a random number to the path, if the bottle directory already exists. This motivates the commits up to fc7513a.
I went a bit over the top and implemented it further, until I can create and restore bottle snapshots using the bottles GUI. With all updates added to this PR, I think this is ready to be merged.
Any feedback is appreciated.
Type of change
How Has This Been Tested?