Fix ignoring of loop disk devices

This commit is contained in:
Caleb Bassi 2018-12-09 22:04:43 -08:00
parent 8548428db4
commit 2043837fd8

View File

@ -61,7 +61,7 @@ func (self *Disk) update() {
// add partition if it's new // add partition if it's new
for _, Part := range Partitions { for _, Part := range Partitions {
// don't show loop devices // don't show loop devices
if strings.HasPrefix(Part.Device, "loop") { if strings.HasPrefix(Part.Device, "/dev/loop") {
continue continue
} }
// check if partition doesn't already exist in our list // check if partition doesn't already exist in our list