bundles/sshmon: fix an issue where check_mounts couldn't properly detect systemd mount units

This commit is contained in:
Franzi 2021-04-23 14:01:24 +02:00
parent 8687cd6bfa
commit 616feb54b2
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -34,7 +34,7 @@ def read_systemd():
mountunit = line.split()[0]
props = check_output(
'systemctl show -p FragmentPath,Options,SourcePath,Type,UnitFileState,Where -- ' + mountunit,
"systemctl show -p FragmentPath,Options,SourcePath,Type,UnitFileState,Where -- '{}'".format(mountunit),
shell=True,
).decode('UTF-8')
for pline in props.splitlines():