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
1 changed files with 1 additions and 1 deletions

View File

@ -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