Force luks1 for new filesystems
authorDebian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org>
Sat, 6 Apr 2019 10:40:05 +0000 (11:40 +0100)
committerJonathan Carter <jcc@debian.org>
Sat, 6 Apr 2019 10:40:05 +0000 (11:40 +0100)
Force luks1 since cryptsetup 2.1 defaults to luks2 which isn't well supported.
Author: Jonathan Carter <jcc@debian.org>

Gbp-Pq: Name force-luks1

src/fs/luks.cpp

index de923c2062f575158343f5e8a0978e71105047e8..379230d6b9e9a548cc1f6a32fc7f2282b1f75380 100644 (file)
@@ -125,6 +125,7 @@ bool luks::create(Report& report, const QString& deviceNode)
                                 QStringLiteral("512"),
                                 QStringLiteral("--batch-mode"),
                                 QStringLiteral("--force-password"),
+                                QStringLiteral("--type=luks1"),
                                 QStringLiteral("luksFormat"),
                                 deviceNode });
     if (!( createCmd.start(-1) &&