From c84ff5b9576a4e1481a155e071ce5d70ca08e1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Fri, 26 Aug 2016 18:31:14 +0100 Subject: [PATCH] Use swaplabel for swap labels. --- src/fs/linuxswap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/linuxswap.cpp b/src/fs/linuxswap.cpp index f58773c..c794cbe 100644 --- a/src/fs/linuxswap.cpp +++ b/src/fs/linuxswap.cpp @@ -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; }