Use swaplabel for swap labels.

This commit is contained in:
Andrius Štikonas 2016-08-26 18:31:14 +01:00
parent a598ad9fd1
commit c84ff5b957
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ bool linuxswap::copy(Report& report, const QString& targetDeviceNode, const QStr
bool linuxswap::writeLabel(Report& report, const QString& deviceNode, const QString& newLabel)
{
ExternalCommand cmd(report, QStringLiteral("mkswap"), { QStringLiteral("--label"), newLabel, deviceNode });
ExternalCommand cmd(report, QStringLiteral("swaplabel"), { QStringLiteral("--label"), newLabel, deviceNode });
return cmd.run(-1) && cmd.exitCode() == 0;
}