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)