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

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