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

/sysroot private mount and /home -> /sysroot/home #2086

Open
cgwalters opened this issue Apr 27, 2020 · 3 comments
Open

/sysroot private mount and /home -> /sysroot/home #2086

cgwalters opened this issue Apr 27, 2020 · 3 comments

Comments

@cgwalters
Copy link
Member

Related: #2085

Reported on IRC, today gnome-continuous uses /home ➡️ /sysroot/home but this conflicts with #1438 if the user creates mounts in their home directory.

I think basically everyone should use /var/home, but probably ostree should either disable the private mount for /sysroot if we detect these symlinks.

gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue Apr 27, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue Apr 27, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
@valentindavid
Copy link
Contributor

I have noticed that if I remove totally /home ➡️ var/home, then Flatpak applications with --filesystem=host do not have access to home directory, unless they also have --filesystem=home.

So it seems that home should be defined within /var/home in /etc/passwd, but the symlink should still exist for flatpak application to work correctly. (I still have to test that).

@jlebon
Copy link
Member

jlebon commented Apr 28, 2020

So it seems that home should be defined within /var/home in /etc/passwd

Yes, note rpm-ostree for example does this: coreos/rpm-ostree#1726.

@valentindavid
Copy link
Contributor

I can confirm that for Flatpak applications like org.flatpak.Builder need to have both the /home ➡️ var/home AND the home directory defined in /etc/passwd should be using /var/home. I have just tested it.

It is very peculiar that removing the symlink breaks flatpak.

gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue Apr 28, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 1, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 1, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 2, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 3, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 3, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 4, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 5, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 5, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 6, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 6, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 7, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 7, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 9, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 9, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 10, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 10, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 11, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue May 28, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
gnomesysadmins pushed a commit to GNOME/gnome-build-meta that referenced this issue Jun 2, 2020
Otherwise flatpak'ed Buildstream and flatpak'ed Flatpak Builder do not work.

ostreedev/ostree#2086
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

3 participants