mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
diagnosis: Ignore /dev/loop devices in systemresources
This commit is contained in:
parent
8d02766098
commit
21a0c65ed6
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ class SystemResourcesDiagnoser(Diagnoser):
|
|||
|
||||
disk_partitions = sorted(psutil.disk_partitions(), key=lambda k: k.mountpoint)
|
||||
|
||||
# Ignore /dev/loop stuff which are ~virtual partitions ? (e.g. mounted to /snap/)
|
||||
disk_partitions = [d for d in disk_partitions if not d.device.startswith("/dev/loop")]
|
||||
|
||||
for disk_partition in disk_partitions:
|
||||
device = disk_partition.device
|
||||
mountpoint = disk_partition.mountpoint
|
||||
|
|
Loading…
Add table
Reference in a new issue