mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
Merge pull request #12835 from rainzm/hostdeployer/vgrename
fix(hostdeployer): Operate with the original name when vgrename fails
This commit is contained in:
@@ -157,10 +157,12 @@ func (p *SKVMGuestLVMPartition) SetupDevice() bool {
|
||||
if len(p.vgid) == 0 {
|
||||
return false
|
||||
}
|
||||
if !p.vgRename(p.vgid, p.vgname) {
|
||||
return false
|
||||
if p.vgRename(p.vgid, p.vgname) {
|
||||
p.needChangeName = true
|
||||
} else {
|
||||
p.vgname = p.originVgname
|
||||
p.needChangeName = false
|
||||
}
|
||||
p.needChangeName = true
|
||||
if p.vgActivate(true) {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user