[gnome-disk-utility] gducreateformatdialog: Use LUKS2 for new encrypted partitions
- From: Kai Lüke <kailueke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] gducreateformatdialog: Use LUKS2 for new encrypted partitions
- Date: Mon, 12 Jul 2021 21:11:11 +0000 (UTC)
commit 0395e41b166068727b4634aa7e226499cf55900c
Author: Manuel Wassermann <manuel wassermann97 gmail com>
Date: Mon Jul 12 11:12:59 2021 +0200
gducreateformatdialog: Use LUKS2 for new encrypted partitions
Fixes: #193
src/disks/gducreateformatdialog.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/disks/gducreateformatdialog.c b/src/disks/gducreateformatdialog.c
index 453e9fd2..37943f6d 100644
--- a/src/disks/gducreateformatdialog.c
+++ b/src/disks/gducreateformatdialog.c
@@ -251,8 +251,12 @@ ensure_unused_cb (UDisksClient *client, GAsyncResult *res, CreateFormatData *dat
}
if (get_encrypt (data))
- g_variant_builder_add (&options_builder, "{sv}", "encrypt.passphrase",
- g_variant_new_string (gdu_create_password_page_get_password
(data->password_page)));
+ {
+ g_variant_builder_add (&options_builder, "{sv}", "encrypt.passphrase",
+ g_variant_new_string (gdu_create_password_page_get_password
(data->password_page)));
+
+ g_variant_builder_add (&options_builder, "{sv}", "encrypt.type", g_variant_new_string ("luks2"));
+ }
if (erase_type != NULL)
g_variant_builder_add (&options_builder, "{sv}", "erase", g_variant_new_string (erase_type));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]