blob: 33c03d0de0032100adfad43b7def9440aa9f3081 (
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 && while read -r vmlinuz; do kver="$(basename "$(dirname "${vmlinuz}")")" && printf "kernel-install remove %s\n" "${kver}" && kernel-install remove "${kver}"; done'
Depends = bash
Depends = systemd
NeedsTargets
|