[partition] Allow 'luks' as alias of 'luks1'

This commit is contained in:
Adriaan de Groot 2022-10-10 21:12:28 +02:00
parent f31056faae
commit 703cbb7bf3
3 changed files with 3 additions and 2 deletions

View File

@ -66,6 +66,7 @@ Config::luksGenerationNames()
// clang-format off
static const NamedEnumTable< LuksGeneration > names {
{ QStringLiteral( "luks1" ), LuksGeneration::Luks1 },
{ QStringLiteral( "luks" ), LuksGeneration::Luks1 },
{ QStringLiteral( "luks2" ), LuksGeneration::Luks2 },
};
// clang-format on

View File

@ -72,7 +72,7 @@ userSwapChoices:
# also set to luks2. Also there are some patches for grub and Argon2.
# See: https://aur.archlinux.org/packages/grub-improved-luks2-git
#
# Choices: luks1, luks2
# Choices: luks1, luks2 (in addition, "luks" means "luks1")
#
# The default is luks1
#

View File

@ -20,7 +20,7 @@ properties:
defaultFileSystemType: { type: string }
availableFileSystemTypes: { type: array, items: { type: string } }
luksGeneration: { type: string, enum: [luks1, luks2] }
luksGeneration: { type: string, enum: [luks1, luks2] } # Also allows "luks" as alias of "luks1"
enableLuksAutomatedPartitioning: { type: boolean, default: false }
allowManualPartitioning: { type: boolean, default: true }