blob: a1f9400a370dd099a401022f0ab44edf6752a1ad (
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}")")" && echo "==> kernel-install add ${kver} ${vmlinuz}" && kernel-install add "${kver}" "${vmlinuz}"; done'
Depends = bash
Depends = systemd
NeedsTargets
|