diff --git a/metrics.py b/metrics.py index fd18d16..93a64a7 100644 --- a/metrics.py +++ b/metrics.py @@ -40,7 +40,7 @@ def dev_to_mountpoint(dev_name): def mountpoint_to_dev(mountpoint): res = subprocess.run( - f"findmnt --json --first-only --mountpoint {mountpoint}", + f"findmnt --json --first-only --nofsroot --mountpoint {mountpoint}", shell=True, capture_output=True, )