summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Brulebois <ckb@riseup.net>2019-04-03 18:10:30 +0200
committerCyril Brulebois <ckb@riseup.net>2019-04-03 18:10:57 +0200
commitcd9919a2f30340fc5f0fe2512a408b1c419c9ad6 (patch)
treedffecc77de7a9e37181fb6803931f24364832205
parenta3a442e77deb60c798542b3654b57a24de278a29 (diff)
Switch to LUKS2 in tails-persistence-setup (refs: #15450).feature/15450-switch-to-luks2
In buster, cryptsetup defaults to LUKS2 already, but UDisks2 doesn't. Let's specify luks2 as the desired encryption type when formatting through UDisks2.
-rw-r--r--lib/Tails/Persistence/Setup.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Tails/Persistence/Setup.pm b/lib/Tails/Persistence/Setup.pm
index 0a83c5a..c00deae 100644
--- a/lib/Tails/Persistence/Setup.pm
+++ b/lib/Tails/Persistence/Setup.pm
@@ -571,6 +571,7 @@ method create_persistent_encrypted_filesystem (
my $fsoptions = {
%{$self->persistence_filesystem_options},
'encrypt.passphrase' => $opts->{passphrase},
+ 'encrypt.type' => 'luks2',
};
$self->udisks_service->get_object($self->persistence_partition)