Description of problem: The current implementation to set default rules does not work if the system is installed with dnf option '--setopt=tsflags=nodocs' or anaconda kickstart option '%packages --nodocs'. If the options set, the files under /usr/share/doc are not installed. So, the post script fail. %%%%%%%%%% Installing : audit-2.5-3.fc24.x86_64 497/584 cp: cannot stat '/usr/share/doc/audit/rules/10-no-audit.rules': No such file or directory %%%%%%%%%% Version-Release number of selected component (if applicable): audit-2.5-3.fc24 How reproducible: Always Steps to Reproduce: 1. dnf --setopt=tsflags=nodocs install audit 2. 3. Actual results: Install finishes without any error message. Expected results: The post script outputs the above error message. Additional info:
I fixed the postscript to be conditional. Pushed to rawhide. Thanks for reporting the issue.