nilfs2: pass -f to mkfs.nilfs2 to overwrite existing file system

This commit is contained in:
Andrius Štikonas 2017-09-08 00:20:35 +01:00
parent 3866bf6fef
commit 2cfcefd9c9
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ bool nilfs2::check(Report& report, const QString& deviceNode) const
bool nilfs2::create(Report& report, const QString& deviceNode)
{
ExternalCommand cmd(report, QStringLiteral("mkfs.nilfs2"), { deviceNode });
ExternalCommand cmd(report, QStringLiteral("mkfs.nilfs2"), { QStringLiteral("-f"), deviceNode });
return cmd.run(-1) && cmd.exitCode() == 0;
}