Also during an update %triggerpostun is the last which is being executed. https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#ordering At that time there should exist a /lib/modules/<kernel-version>/kernel/ directory.