From 616feb54b237e15b7c4394522c12ce6a3ffc2499 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 23 Apr 2021 14:01:24 +0200 Subject: [PATCH] bundles/sshmon: fix an issue where check_mounts couldn't properly detect systemd mount units --- bundles/sshmon/files/check_mounts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/sshmon/files/check_mounts b/bundles/sshmon/files/check_mounts index 43ec850..f387ce4 100644 --- a/bundles/sshmon/files/check_mounts +++ b/bundles/sshmon/files/check_mounts @@ -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():