summaryrefslogtreecommitdiff
path: root/cmount.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmount.py')
-rwxr-xr-xcmount.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmount.py b/cmount.py
index 9e25bda..e2dc8bf 100755
--- a/cmount.py
+++ b/cmount.py
@@ -32,11 +32,10 @@ def main():
32 device, 32 device,
33 mapper_name]) 33 mapper_name])
34 time.sleep(3) 34 time.sleep(3)
35 cstm_error = 'lvchange error' 35 cstm_error = 'vgimport error'
36 subprocess.check_call(['/sbin/vgchange', 36 subprocess.check_call(['/sbin/vgimport',
37 '-a',
38 'y',
39 data['device'].split('/')[2]]) 37 data['device'].split('/')[2]])
38 cstm_error = 'lvchange error'
40 subprocess.check_call(['/sbin/lvchange', 39 subprocess.check_call(['/sbin/lvchange',
41 '-a', 40 '-a',
42 'y', 41 'y',