-
Couldn't load subscription status.
- Fork 211
Description
Not sure if this is precisely a project atomic issue or a rpm-ostree issue.
But maybe rpm-ostree can make this slightly easier.
For snap classic one needs to setup a symlink from /snap to/ var/lib/snapd/snap in the root directory but of course the root is readonly.
I made a documentation issue on the snap forums https://forum.snapcraft.io/t/installing-snap-on-fedora/6755/4 but this isn't something rpm-ostree should directly care about I think.
I don't think this is going to be a snap only issue and probably a few other apps will need awkward symlinks like this.
What I'm wondering is if the best way to do this sort of thing is to make a bind mount in the fstab or systemd mount file or if there is an easier way or rpm-ostree can make this sort of thing easier?
Host system details
Provide the output of rpm-ostree status.
State: idle
AutomaticUpdates: disabled
Deployments:
● ostree://fedora-workstation:fedora/29/x86_64/silverblue
Version: 29.20181209.0 (2018-12-09T01:05:12Z)
BaseCommit: ab52579b9965a871e3db1987c6e0a256fecaeb03a3d72df1a8b76baaf2406d8d
GPGSignature: Valid signature by 5A03B4DD8254ECA02FDA1637A20AA56B429476B4
LayeredPackages: SDL SDL_image SDL_ttf chromium deja-dup docker emacs libGLU
libvirt-daemon-config-network libvirt-daemon-kvm powertop
qemu-kvm virt-install virt-manager virt-top virt-viewer
ostree://fedora-workstation:fedora/29/x86_64/silverblue
Version: 29.20181209.0 (2018-12-09T01:05:12Z)
BaseCommit: ab52579b9965a871e3db1987c6e0a256fecaeb03a3d72df1a8b76baaf2406d8d
GPGSignature: Valid signature by 5A03B4DD8254ECA02FDA1637A20AA56B429476B4
LayeredPackages: SDL SDL_image SDL_ttf chromium deja-dup docker emacs libGLU
libvirt-daemon-kvm powertop qemu-kvm
Expected vs actual behavior
# sudo ln -s /var/lib/snapd/snap /snap
ln: failed to create symbolic link '/snap': Operation not permitted
Expected:
Success!
Would you like to work on the issue?
This is more of a meta or documentation issue of how system administrators are supposed to handle ad-hoc changes like this. Ideally fedora would probably just ship a package snap-classic that installs such a symlink for this specific case but I think other cases like this will probably happen. I know rpm-ostree already has the machinery inside it to merge /etc with /usr/etc and with var.
Not sure what I'm supposed to modify or add a hook to for adding in the ad-hoc change of a symlink. Telling system admins to modify the fstab is okay but a big problem with that is that it is easy to mess up and make the system unbootable (as I did and then had to recover and recovery was annoying because I had to navigate the ostree directory structure.)