From 8c2e53ead70b3e2826e3581153015c493ee885f7 Mon Sep 17 00:00:00 2001 From: Tristan d'Audibert Date: Tue, 30 Jul 2024 17:15:09 +0200 Subject: [PATCH] fix(lib/installer.py) Patch mkinitcpio.conf with putting encrypt after keymap Signed-off-by: Tristan d'Audibert --- archinstall/lib/installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 4cab29c93e..d3c908751b 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -804,10 +804,10 @@ def _handle_lvm_installation(self): self.pacman.strap('libfido2') if 'sd-encrypt' not in self._hooks: - self._hooks.insert(self._hooks.index('lvm2') - 1, 'sd-encrypt') + self._hooks.insert(self._hooks.index('lvm2'), 'sd-encrypt') else: if 'encrypt' not in self._hooks: - self._hooks.insert(self._hooks.index('lvm2') - 1, 'encrypt') + self._hooks.insert(self._hooks.index('lvm2'), 'encrypt') def minimal_installation( self,