[Trigger] Type = Path Operation = Install Operation = Upgrade Operation = Remove Target = usr/lib/modules/*/ [Action] Description = Copy old kernel module directory to cache When = PreTransaction Exec = /usr/lib/kmodcache/pre-upgrade