From a72d798ee6f7b2b04f0c21a27d93a936d130fc7c Mon Sep 17 00:00:00 2001 From: Tristan d'Audibert <73892097+ScriptSathi@users.noreply.github.com> Date: Fri, 2 Aug 2024 06:47:00 +0200 Subject: [PATCH] fix(lib/installer.py) Patch mkinitcpio.conf with putting encrypt after keymap (#2601) 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 4cab29c9..d3c90875 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -804,10 +804,10 @@ class Installer: 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,