Add --force to lvm pvcreate in case there are some old file system signatures.
This commit is contained in:
parent
25bbce4975
commit
da081d2f29
|
@ -108,7 +108,7 @@ bool lvm2_pv::check(Report& report, const QString& deviceNode) const
|
|||
|
||||
bool lvm2_pv::create(Report& report, const QString& deviceNode) const
|
||||
{
|
||||
ExternalCommand cmd(report, QStringLiteral("lvm"), { QStringLiteral("pvcreate"), deviceNode });
|
||||
ExternalCommand cmd(report, QStringLiteral("lvm"), { QStringLiteral("pvcreate"), QStringLiteral("--force"), deviceNode });
|
||||
return cmd.run(-1) && cmd.exitCode() == 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue