Cleanup current symlink when removing snap

Bug #2009617 reported by Merlijn Sebrechts
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Committed
Low
Zeyad Gouda

Bug Description

`snap remove --purge <app>` doesn't seem to drop ~/snap/$SNAP/current, only the revisioned ones.

I expect purge to remove everything. This is an issue for users who, for one reason or another, have incorrect permissions on ~/snap/$SNAP/current and want to fix it by purging the snap.

Revision history for this message
Miguel Pires (miguelpires1) wrote :

Hi. The purpose of that flag isn't to clean the directory, it's to skip taking a snapshot of the snap data. From the help message:
"--purge Remove the snap without saving a snapshot of its data"
However, leaving the "current" symlink behind when removing the snap is a bug.

Changed in snapd:
assignee: nobody → Miguel Pires (miguelpires1)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Merlijn Sebrechts (merlijn-sebrechts) wrote :

Testing this on my own machine, it seems as if the `current` symlink is indeed the only thing left. I apologize for the confusion.

Changed in snapd:
assignee: Miguel Pires (miguelpires1) → nobody
summary: - Purge doesn't remove all files
+ Cleanup current symlink when removing snap
Zeyad Gouda (zeyadgouda)
Changed in snapd:
assignee: nobody → Zeyad Gouda (zeyadgouda)
status: Confirmed → In Progress
Revision history for this message
Ernest Lotter (ernestl) wrote :

Fix available in snapd 2.62 what is currently in available in beta. Test feedback would be appreciated.

Changed in snapd:
status: In Progress → Fix Committed
milestone: none → 2.62
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.