Fix ignoring of loop disk devices
This commit is contained in:
parent
8548428db4
commit
2043837fd8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user