neil / rpms / python-blivet

Forked from rpms/python-blivet a year ago
Clone

Blame SOURCES/0007-Do-not-use-FSAVAIL-and-FSUSE-options-when-running-lsblk.patch

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