blob: 7b87580e1be0df956c1e3923c8ec31322c026233 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
[Trigger]
Operation = Upgrade
Operation = Remove
Type = File
Target = usr/lib/modules/*/vmlinuz
[Action]
Description = Removing kernel and initrd from $BOOT (kernel-install)
When = PreTransaction
Exec = /bin/bash -c 'shopt -s extglob && . /usr/lib/initcpio/functions && while read -r vmlinuz; do kver="$(kver "${vmlinuz}")" && msg "Removing ${kver}" && kernel-install remove "${kver}"; done'
Depends = bash
Depends = systemd
NeedsTargets
|