[Trigger] Type = Path Operation = Remove Target = usr/lib/modules/*/pkgbase Target = usr/src/*/dkms.conf [Action] Description = Removing linux images... When = PreTransaction Exec = /bin/sh -c "/usr/bin/dracut-ukify -y" NeedsTargets