summarylogtreecommitdiffstats
path: root/kernel-install-add.hook
blob: e52338b722da8e0c89817bb4f74935cdc23c14af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Trigger]
Operation = Install
Operation = Upgrade
Type = File
Target = usr/lib/modules/*/vmlinuz

[Action]
Description = Installing kernel and initrd to $BOOT (kernel-install)
When = PostTransaction
Exec = /bin/bash -c 'shopt -s extglob && while read -r vmlinuz; do kver="$(basename "$(dirname "${vmlinuz}")")" && vmlinuz="$(realpath "${vmlinuz}")" && printf "kernel-install add %s %s\n" "${kver}" "${vmlinuz}" && kernel-install add "${kver}" "${vmlinuz}"; done'
Depends = bash
Depends = systemd
NeedsTargets