From 6615d182462b1950714444e3129efc9563324cc5 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Fri, 21 Mar 2025 18:35:14 -0400 Subject: [PATCH] Dedent Limine hook (#3286) --- archinstall/lib/installer.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 1617e60f..c91144b9 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1329,17 +1329,20 @@ class Installer: f' && /usr/bin/cp /usr/share/limine/limine-bios.sys /boot/limine/' ) - hook_contents = f'''[Trigger] -Operation = Install -Operation = Upgrade -Type = Package -Target = limine + hook_contents = textwrap.dedent( + f'''\ + [Trigger] + Operation = Install + Operation = Upgrade + Type = Package + Target = limine -[Action] -Description = Deploying Limine after upgrade... -When = PostTransaction -Exec = /bin/sh -c "{hook_command}" -''' + [Action] + Description = Deploying Limine after upgrade... + When = PostTransaction + Exec = /bin/sh -c "{hook_command}" + ''' + ) hooks_dir = self.target / 'etc' / 'pacman.d' / 'hooks' hooks_dir.mkdir(parents=True, exist_ok=True)