Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/menu
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-05-29 13:59:25 +0200
committerGitHub <noreply@github.com>2022-05-29 13:59:25 +0200
commitc75e6a1da3c243126eaf59ee12f0b2464449e5e2 (patch)
tree18c34eb348191ea2ee8524c1d7eba79676797d6f /archinstall/lib/menu
parent7dbea73514b35cbaa18c156895bf6f416b2345ca (diff)
Made sure generate-encryption-key-file is set for supplementary partitions to / (#1281)
Diffstat (limited to 'archinstall/lib/menu')
-rw-r--r--archinstall/lib/menu/global_menu.py5
1 files changed, 5 insertions, 0 deletions
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: