FS#50435 - [snapd] - snapd package should not create /snap
Attached to Project:
Community Packages
Opened by Jonathan Roemer (pid1) - Thursday, 18 August 2016, 17:36 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 23 February 2017, 04:00 GMT
Opened by Jonathan Roemer (pid1) - Thursday, 18 August 2016, 17:36 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 23 February 2017, 04:00 GMT
|
Details
Our snapd package currently creates /snap.
https://git.archlinux.org/svntogit/community.git/plain/trunk/snapd.sh?h=packages/snapd This is an unnecessary violation of the FHS, as $SNAPS is respected. We should have a discussion concerning where these would be moved. As per the Fedora package spec, which currently owns /var/lib/snapd/{assertions,desktop,mount,seccomp,snaps}, I believe we should use /var/lib/snapd/snaps. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Thursday, 23 February 2017, 04:00 GMT
Reason for closing: Fixed
Additional comments about closing: snapd 2.21-1
Thursday, 23 February 2017, 04:00 GMT
Reason for closing: Fixed
Additional comments about closing: snapd 2.21-1
See
https://bugzilla.redhat.com/show_bug.cgi?id=1367825#c10
https://fedorahosted.org/fesco/ticket/1614
If one exception is made, the rule is pretty much useless and potentially any other "special" software gets its own root dirs.
Luckily this case should be trivial to solve.
Also i agree something like /var/lib/{pkg} could be a good place as its meant to be the "Persistent application storage", perfect match for such. :)
drizzt@liara ~ % pacman -Qo /snap
error: No package owns /snap
drizzt@liara ~ %
$SNAPS doesn't do that you think, the only environment variable that does almost what you want is "SNAPPY_GLOBAL_ROOT", but it's used for chroot and testing,
changing directory is not supported upstream yet.
The directory is *not* created during install time, but it's only created at runtime, exactly like autofs using the default configuration (it creates /net and /misc).
If we are going to be creating a directory at /, it should be in the PKGBUILD and handled by pacman. I apologize if I misunderstood how $SNAPS works. I thought they were unaware of where they were on the filesystem, and that we could handle it through that var.
If /snaps truly is hardcoded, we should work with Fedora and Debian to get this changed upstream.
Patch can be found here: http://pkgs.fedoraproject.org/cgit/rpms/snapd.git/tree/0001-dirs-FEDORA-use-alternate-snap-mount-directory.patch
https://bugzilla.redhat.com/show_bug.cgi?id=1367825#c21