summaryrefslogtreecommitdiff
path: root/cumount.py
diff options
context:
space:
mode:
authorSimeon Simeonov2017-09-14 19:56:17 +0200
committerSimeon Simeonov2017-09-14 19:56:17 +0200
commit8ef2a7f12227a6d3365ac77040d14becba6ddd83 (patch)
treeaf60de68891b844c908f20dc9c57286f7eebe6ca /cumount.py
parent7a754f722de1e44865573335b990658b3ff004cc (diff)
Enable / disable VG as well
Diffstat (limited to 'cumount.py')
-rwxr-xr-xcumount.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cumount.py b/cumount.py
index e2fb32f..e74bc00 100755
--- a/cumount.py
+++ b/cumount.py
@@ -32,6 +32,10 @@ def main():
32 '-a', 32 '-a',
33 'n', 33 'n',
34 data['device']]) 34 data['device']])
35 subprocess.check_call(['/sbin/vgchange',
36 '-a',
37 'n',
38 data['device'].split('/')[2]])
35 cstm_error = 'pv_sources error' 39 cstm_error = 'pv_sources error'
36 for mapper_name in data['pv_sources'].values(): 40 for mapper_name in data['pv_sources'].values():
37 subprocess.check_call(['/sbin/cryptsetup', 41 subprocess.check_call(['/sbin/cryptsetup',