diff options
Diffstat (limited to 'lbup/targets.py')
-rw-r--r-- | lbup/targets.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lbup/targets.py b/lbup/targets.py index e7e161e..ebcfa33 100644 --- a/lbup/targets.py +++ b/lbup/targets.py @@ -288,7 +288,8 @@ class TargetSSHLVM(TargetSSH): vg_name = lv_fullname.split('/')[0] # create a read-only snapshot with a random name - snapshot_name = secrets.token_urlsafe() + # make sure snapshot name starts with a letter + snapshot_name = 'a' + secrets.token_urlsafe() snapshot_fullname = '%s/%s' % (vg_name, snapshot_name) self._paramiko_exec_cmd(ssh, 'lvcreate --permission r --snapshot -L {size} -n {name} {origin}' |