-
Notifications
You must be signed in to change notification settings - Fork 13
--user installs broken on tmpfs $HOME due to missing xattr support #85
Comments
What distro are you on, and where did you get your build of xdg-app? |
Oh, f23. So are you using the xdg-app distro package? Do you use that standard F23 kernel? |
I am using Fedora-Live-Workstation-x86_64-23-10.iso (slightly changed to use overlayfs rather than device-mapper) loop-mounted with GRUB2 with its stock kernel. I followed ste steps from https://wiki.gnome.org/Projects/SandboxedApps/NightlyBuilds for getting xdg-app. |
Can you do something like:
And attach "log" here? |
Lots of |
Here is the failure: I guess overlayfs does not support xattrs? |
(The EBADF are just from trying to close all possible fds before execing a child process). |
If you just want to test this, you can try to install without the --user. Then you need to run it as root and it will install stuff in /var/xdg-app/, but it will not use xattrs. |
All I could find on https://www.kernel.org/doc/Documentation/filesystems/overlayfs.txt is "On a file opened with O_RDONLY fchmod(2), fchown(2), futimesat(2) and fsetxattr(2) will fail with EROFS.". I do not know how to test setxattr, but
These are my relevant mounts:
|
Thanks, testing without |
What is /run/upper on? |
Yes, that would be doable if I wanted a persistent system (which is not my use case though). |
Yeah, tmpfs has no xattrs support unfortunately |
That probably means that this solution is not going to work for Fedora live systems out-of-the-box then. |
Yeah, i'll think some about it. |
@alexlarsson do you still consider making this usable for Live systems? |
It would be nice to have, but i can't really think of a good solution. Maybe one could create an ostree repo mode similar to bare-user that doesn't use xattrs, or one could look at adding xattrs to tmpfs. |
Unfortunately, I have the same problem with nfs $HOME. Do you recommend the bind mounting workaround for people in that situation as well? |
Symlink should work too. Or, install the apps in the system repo (/var/lib/xdg-app), althought that requires you to be root to install them. The later is the long-term plan for most xdg-app installs actually. I want to add a polkit enabled helper that lets users update/install signed apps from trusted remotes. |
Cool, thanks! That sounds like a good plan. |
This issue was moved to flatpak/flatpak#17 |
Trying to follow the instructions from https://wiki.gnome.org/Projects/SandboxedApps/NightlyBuilds on Fedora 23, I get:
The text was updated successfully, but these errors were encountered: