|
|
f01d01 |
From 7bc4e324580656585adad0cbe51d60ed3540b766 Mon Sep 17 00:00:00 2001
|
|
|
f01d01 |
From: Vojtech Trefny <vtrefny@redhat.com>
|
|
|
f01d01 |
Date: Fri, 3 Jul 2020 13:04:23 +0200
|
|
|
f01d01 |
Subject: [PATCH] Do not use FSAVAIL and FSUSE% options when running lsblk
|
|
|
f01d01 |
|
|
|
f01d01 |
These options were added in util-linux 2.33 which is not available
|
|
|
f01d01 |
on older systems so we should not use these.
|
|
|
f01d01 |
---
|
|
|
f01d01 |
blivet/blivet.py | 2 +-
|
|
|
f01d01 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
f01d01 |
|
|
|
f01d01 |
diff --git a/blivet/blivet.py b/blivet/blivet.py
|
|
|
f01d01 |
index fcc2080b..e7dbd37b 100644
|
|
|
f01d01 |
--- a/blivet/blivet.py
|
|
|
f01d01 |
+++ b/blivet/blivet.py
|
|
|
f01d01 |
@@ -77,7 +77,7 @@ def __init__(self):
|
|
|
f01d01 |
self._dump_file = "%s/storage.state" % tempfile.gettempdir()
|
|
|
f01d01 |
|
|
|
f01d01 |
try:
|
|
|
f01d01 |
- options = "NAME,SIZE,OWNER,GROUP,MODE,FSTYPE,LABEL,UUID,PARTUUID,FSAVAIL,FSUSE%,MOUNTPOINT"
|
|
|
f01d01 |
+ options = "NAME,SIZE,OWNER,GROUP,MODE,FSTYPE,LABEL,UUID,PARTUUID,MOUNTPOINT"
|
|
|
f01d01 |
out = capture_output(["lsblk", "--bytes", "-a", "-o", options])
|
|
|
f01d01 |
except Exception: # pylint: disable=broad-except
|
|
|
f01d01 |
pass
|