gentoo-snappy icon indicating copy to clipboard operation
gentoo-snappy copied to clipboard

Remaining service after uninstall of app-emulation/snapd

Open kefnab opened this issue 8 years ago • 6 comments

After uninstall

systemctl list-unit-files | grep -i snap

snap-ubuntu\x2dcore-423.mount

systemctl -all | grep -i snap

snap-ubuntu\x2dcore-423.mount loaded active mounted Mount unit for ubuntu-core ● snapd.socket not-found active running snapd.socket

snap-ubuntu\x2dcore-423.mount remains after reboot

After Install

systemctl -all | grep -i snap

snap-ubuntu\x2dcore-423.mount loaded active mounted Mount unit for ubuntu-core ● snapd.firstboot.service not-found inactive dead snapd.firstboot.service snapd.refresh.service loaded inactive dead Automatically refresh installed snaps snapd.service loaded active running Snappy daemon snapd.socket loaded active running Socket activation for snappy daemon snapd.frameworks-pre.target loaded inactive dead Ready for frameworks snapd.refresh.timer loaded inactive dead Timer to automatically refresh installed snaps

kefnab avatar Sep 20 '16 00:09 kefnab

Is snap-ubuntu\x2dcore-423.mount from the snap-confine package, or does it come from installing a snap package (I've been using nitrokey-app)? I didn't see it in the src_install portion of the snapd package.

kefnab avatar Sep 20 '16 03:09 kefnab

The .mount unit is from snapd. Each installed snap is just a mounted filesystem. I think we should either:

  1. remove everything (all the snaps, their data, etc)
  2. keep everything as is

The difference is visible when you re-install snapd. After that you can just continue as if nothing had occurred earlier. If we o with 1) we'd have to carefully stop all the snap services (services from installed snaps). Stop snapd, unmount everything and remove all the generated services and mount points.

zyga avatar Sep 20 '16 10:09 zyga

I will test with manually uninstalling my snaps prior to unmerging the packages. If that successfully cleans things up, then maybe I'll put a notice (gentoo packaging metadata) to instruct users to do just that (if they want) - or leave them for a future re-install.

kefnab avatar Sep 20 '16 12:09 kefnab

Thanks!

zyga avatar Sep 21 '16 11:09 zyga

Even after uninstalling any snaps, snap-ubuntu\x2dcore-423.mount remains. I think ubuntu-core is installed along with the first snap package, but isn't removed when all snaps are removed. I'd prefer if either unmerging snapd removed everything - or if we could include instructions for the user on how to manually umount, disable services, and clean up the files.

What are your thoughts?

kefnab avatar Oct 06 '16 02:10 kefnab

I think it should remove everything. We're still working on features for the next major release but after that I will work on packaging to address this (and many other issues). I will try to get this fixed in time for the snappy sprint next week.

zyga avatar Oct 11 '16 15:10 zyga