From 8ef2a7f12227a6d3365ac77040d14becba6ddd83 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 14 Sep 2017 19:56:17 +0200 Subject: Enable / disable VG as well --- cumount.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cumount.py') diff --git a/cumount.py b/cumount.py index e2fb32f..e74bc00 100755 --- a/cumount.py +++ b/cumount.py @@ -32,6 +32,10 @@ def main(): '-a', 'n', data['device']]) + subprocess.check_call(['/sbin/vgchange', + '-a', + 'n', + data['device'].split('/')[2]]) cstm_error = 'pv_sources error' for mapper_name in data['pv_sources'].values(): subprocess.check_call(['/sbin/cryptsetup', -- cgit v1.3