Pass --force to vgremove in order to allow removing deactivated volume groups.

This commit is contained in:
Andrius Štikonas 2016-11-05 21:48:30 +00:00
parent d0ed72fd20
commit f948569fef
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}