diff options
Diffstat (limited to 'cmount.py')
| -rwxr-xr-x | cmount.py | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -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', |
