Made sure generate-encryption-key-file is set for supplementary partitions to / (#1281)

This commit is contained in:
Anton Hvornum 2022-05-29 13:59:25 +02:00 committed by GitHub
parent 7dbea73514
commit c75e6a1da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -215,6 +215,11 @@ class GlobalMenu(GeneralMenu):
partition['encrypted'] = True partition['encrypted'] = True
partition['!password'] = storage['arguments']['!encryption-password'] partition['!password'] = storage['arguments']['!encryption-password']
# We make sure generate-encryption-key-file is set on additional partitions
# other than the root partition. Otherwise they won't unlock properly #1279
if partition['mountpoint'] != '/':
partition['generate-encryption-key-file'] = True
def _install_text(self): def _install_text(self):
missing = len(self._missing_configs()) missing = len(self._missing_configs())
if missing > 0: if missing > 0: