From c75e6a1da3c243126eaf59ee12f0b2464449e5e2 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 29 May 2022 13:59:25 +0200 Subject: Made sure generate-encryption-key-file is set for supplementary partitions to / (#1281) --- archinstall/lib/menu/global_menu.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'archinstall/lib/menu') diff --git a/archinstall/lib/menu/global_menu.py b/archinstall/lib/menu/global_menu.py index a758d8c6..cb61168d 100644 --- a/archinstall/lib/menu/global_menu.py +++ b/archinstall/lib/menu/global_menu.py @@ -215,6 +215,11 @@ class GlobalMenu(GeneralMenu): partition['encrypted'] = True 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): missing = len(self._missing_configs()) if missing > 0: -- cgit v1.2.3-70-g09d2