Dedent Limine hook (#3286)
This commit is contained in:
parent
edf8bf9b0a
commit
6615d18246
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue