plugin_mounts: not hardcoded lsblk path, it may differ accross distros
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
e675ab0b4c
commit
98c9a1f537
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue