Skip to content

Commit 85914e7

Browse files
committed
Dedent Limine hook
1 parent edf8bf9 commit 85914e7

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

archinstall/lib/installer.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,17 +1329,20 @@ def _add_limine_bootloader(
13291329
f' && /usr/bin/cp /usr/share/limine/limine-bios.sys /boot/limine/'
13301330
)
13311331

1332-
hook_contents = f'''[Trigger]
1333-
Operation = Install
1334-
Operation = Upgrade
1335-
Type = Package
1336-
Target = limine
1337-
1338-
[Action]
1339-
Description = Deploying Limine after upgrade...
1340-
When = PostTransaction
1341-
Exec = /bin/sh -c "{hook_command}"
1342-
'''
1332+
hook_contents = textwrap.dedent(
1333+
f'''\
1334+
[Trigger]
1335+
Operation = Install
1336+
Operation = Upgrade
1337+
Type = Package
1338+
Target = limine
1339+
1340+
[Action]
1341+
Description = Deploying Limine after upgrade...
1342+
When = PostTransaction
1343+
Exec = /bin/sh -c "{hook_command}"
1344+
'''
1345+
)
13431346

13441347
hooks_dir = self.target / 'etc' / 'pacman.d' / 'hooks'
13451348
hooks_dir.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)