From 2043837fd8269e2da7ae07e3d3169b6197226cdc Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Sun, 9 Dec 2018 22:04:43 -0800 Subject: [PATCH] Fix ignoring of loop disk devices --- src/widgets/disk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/disk.go b/src/widgets/disk.go index c3a85f67..3f33a6de 100644 --- a/src/widgets/disk.go +++ b/src/widgets/disk.go @@ -61,7 +61,7 @@ func (self *Disk) update() { // add partition if it's new for _, Part := range Partitions { // don't show loop devices - if strings.HasPrefix(Part.Device, "loop") { + if strings.HasPrefix(Part.Device, "/dev/loop") { continue } // check if partition doesn't already exist in our list