-
Notifications
You must be signed in to change notification settings - Fork 3
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
Mounting does not work #27
Comments
OS: Ubuntu 22.04 |
I am not aware of Flatpak being able to perform mounts as this usually requires superuser privileges and would severely decrease the sandbox security. Also there doesn't seem to be any portal with such functionality: https://docs.flatpak.org/en/latest/portal-api-reference.html. If you come up with a concept for an implementation, I am happy to reopen this issue. |
I've tested Vorta from Flatpak, too, which can mount borg-backup repositories. I'm not sure, but I think it is using FUSE which is a technology in Linux to mount without superuser privileges necessary. |
Yes, Vorta is using FUSE with Flatpak: https://github.com/flathub/com.borgbase.Vorta/blob/master/com.borgbase.Vorta.json#L35 |
Thanks for the reference! I think the important part is You could try to add the device permission via Flatseal or some |
In Flatseal, in Vortas settings I only find |
|
|
My guess: At least the library for FUSE mounts has to be present inside of the sandbox environment, like in the link I shared before: https://github.com/flathub/com.borgbase.Vorta/blob/master/com.borgbase.Vorta.json#L35 |
If I disable
In |
Thanks for your tests so far. I think device=all is similar to device=host. I have to do some more research on the differences.
Kopia is a golang app, which is usually built as static executable, meaning that it should already bundle everything required. While it is technically possible to check for assistance of libraries at runtime and adapt behavior, I would say this is unlikely. I guess we need more information about the actual fuse implementation of Kopia. Maybe you could create an issue in the actual project asking for this information and linking this issue? |
If you have some no Flatpak version of Kopia, you could look here (https://unix.stackexchange.com/questions/120015/how-to-find-out-the-dynamic-libraries-executables-loads-when-run) how to find out which libraries are loaded while mounting. |
The Flatpak basically just unpacks the .deb 😉 io.kopia.KopiaUI/io.kopia.KopiaUI.json Line 48 in 2afe576
|
Log dir: |
Vorta seems to use an fusermount wrapper: https://github.com/flathub/com.borgbase.Vorta/blob/538fea6543c2875eeb28e5f5a12f998b6ead6a12/dependencies/fusermount-wrapper.sh |
Maybe that's the solution? |
For some reason mounting doesn't work for me at all. I don't even see the error messages, you posted. I prepared a branch with the patches from Vorta in #30. You can build and install the Flatpak via flatpak-builder build io.kopia.KopiaUI.json --force-clean --ccache --user --install and run it with flatpak run --device=all io.kopia.KopiaUI//master If it works, can you try if it also works when building without adding |
I have tested the version from testing branch: Click mounting does not do anything. This time, logs are in
, <SIGNING_KEY> and HEX_VALUE_WITH_LEN_OF_THIS_STRING are placeholders This time, in |
I have no idea what is meant with "mount controller". Might make sense to report this issue upstream to get more info... |
If I choose some snapshot and click "mount" - nothing happens.
I can check with gnome-disks: There is no additional virtual drive mounted.
The text was updated successfully, but these errors were encountered: