From 98c9a1f537d683915866d5b90f1d406916e541a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Fri, 15 Jul 2016 15:56:36 +0200 Subject: [PATCH] plugin_mounts: not hardcoded lsblk path, it may differ accross distros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- tuned/plugins/plugin_mounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/plugins/plugin_mounts.py b/tuned/plugins/plugin_mounts.py index 6f96bb6..0aa1c53 100644 --- a/tuned/plugins/plugin_mounts.py +++ b/tuned/plugins/plugin_mounts.py @@ -23,7 +23,7 @@ class MountsPlugin(base.Plugin): mountpoint_topology = {} current_disk = None - stdout, stderr = Popen(["/usr/bin/lsblk", "-rno", "TYPE,RM,KNAME,FSTYPE,MOUNTPOINT"], stdout=PIPE, stderr=PIPE, close_fds=True).communicate() + stdout, stderr = Popen(["lsblk", "-rno", "TYPE,RM,KNAME,FSTYPE,MOUNTPOINT"], stdout=PIPE, stderr=PIPE, close_fds=True).communicate() for columns in map(lambda line: line.split(), stdout.splitlines()): if len(columns) < 3: continue