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

snap mounts seem to be left behind #58

Open
ptocca opened this issue Feb 5, 2024 · 1 comment
Open

snap mounts seem to be left behind #58

ptocca opened this issue Feb 5, 2024 · 1 comment

Comments

@ptocca
Copy link

ptocca commented Feb 5, 2024

snap mounts seem to be left behind

To Reproduce
On Ubuntu 22.04, I executed the generated scripts. Some snap applications were reported as not having flatpak counterpart.
I installed via apt gnome-software. I then restarted Linux.
At the console pgrep snapd confirmed snapd was not running anymore.
Then I inspected the list of mounts with mount. The mounts are still polluted by the snap entries.
Example:
/var/lib/snapd/snaps/gnome-42-2204_141.snap on /snap/gnome-42-2204/141 type squashfs (ro,nodev,relatime,errors=continue,x-gdu.hide)
It would seem that systemd mount units are left behind. Indeed
/etc/systemd/system/snapd.mounts.target.wants contains lots of *.mount files. Example: snap-gnome\x2d42\x2d2204-141.mount.
Did I do anything wrong? Is it perhaps because some snap applications were reported as not having flatpak counterpart?
Even though I was not 100% sure of what I was doing, I deleted that directory and all other entries starting with snap under ``/etc/systemd/system/`.
After a restart, the snap-related "spurious" mounts were gone.

Expected behaviour
I expected everything snap-related to disappear.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version: 22.04

Additional context
I noticed that under /etc/systemd/user there is an entry called snap.snapd-desktop-integration.snapd-desktop-integration.service. Also, there seem to be other remnants of snap around.
By the way, thanks for writing this utility! I had put off getting rid of snap for so long :-)

Copy link

github-actions bot commented Feb 5, 2024

Hello there 👋
Thanks for submitting your first issue to the unsnap project 🐛 We'll try and take a look at your issue soon ⏲

In the meantime you might want to join the popey's home Discord 🗣 where we discuss this project

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

1 participant