Pass --force to vgremove in order to allow removing deactivated volume groups.
This commit is contained in:
parent
d0ed72fd20
commit
f948569fef
|
@ -436,6 +436,7 @@ bool LvmDevice::removeVG(Report& report, LvmDevice& d)
|
|||
bool deactivated = deactivateVG(report, d);
|
||||
ExternalCommand cmd(report, QStringLiteral("lvm"),
|
||||
{ QStringLiteral("vgremove"),
|
||||
QStringLiteral("--force"),
|
||||
d.name() });
|
||||
return (deactivated && cmd.run(-1) && cmd.exitCode() == 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue