blob: c3621db5387fdf81984aaeeaf0fc5616237f99ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
. ${BUILDFILE%/*}/common.sh
pkgver=20180909
package() {
preamble
pkgdesc="Parabola server configuration: Automatically update grub.cfg"
depends+=(grub)
add-file etc/pacman.d/hooks/95-grub-config.hook <<-'EOF'
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = boot/*
Target = etc/grub.d/*
Target = etc/default/grub
Target = usr/share/holo/files/*/etc/default/grub*
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = grub
[Action]
Description = Updating GRUB configuration
When = PostTransaction
Exec = /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg
EOF
postamble
}
|