All snap loops are being output for lsblk, blkid, and fdisk -l.

Bug #1778375 reported by Anthony
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Confirmed
Undecided
Alberto Mardegan

Bug Description

Running lsblk, blkid, and fdisf-l results in long lists of output as every installed snap loop is listed, 2-3 times each. A new and default Ubuntu 18.04 installation alone (without manually installing any snaps) outputs 16 snaps for lsblk, and the list grows with each additional snap installed. The results of fdisk -l are several pages long because of these snaps, creating a lot of unwanted clutter when seeking drive device information.

Meanwhile, gnome-disk-utility shows nothing at all for snaps, only showing my HDD, USB flash drives, and optical drive, the desired output.

Parted -l also functions as desired, only listing the relevant drive partitions.

So, the unwanted effect of this bug is the listing of every snap loop as output for lsblk, blkid, and fdisk -l. The desired effect is not to list any snap loops at all for these commands, or perhaps allowing at maximum 3 core loops as output.

Ubuntu 18.04 LTS

snap:
  Installed: (none)
  Candidate: 2013-11-29-8
  Version table:
     2013-11-29-8 500
        500 http://ca.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

Tags: fdisk lsblk snap
Anthony (danthonyd)
tags: added: snap
tags: added: lsblk
tags: added: fdisk
Anthony (danthonyd)
description: updated
description: updated
Dylan Aïssi (daissi)
affects: snap (Ubuntu) → snapd (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Changed in snapd (Ubuntu):
assignee: nobody → Nimesh Ganatra (nimesh118)
assignee: Nimesh Ganatra (nimesh118) → nobody
Revision history for this message
Alberto Mardegan (mardy) wrote :

Hi Anthony, thanks for reporting this bug (I just found it accidentally while browsing through the existing bugs. I'm afraid that there's little we can do about the fact that these programs also list the mounted snaps -- there might be even scripts, by now, which rely on this behaviour.

Where I think we could do something, it's about the fact that the same snap can appear twice, if there are two revisions of it installed; I guess we could avoid mounting the old one -- I'll check with the rest of the team to understand if there is a reason why it has to be this way.

Changed in snapd (Ubuntu):
assignee: nobody → Alberto Mardegan (mardy)
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.