Using a kickstart which excludes NetworkManager, the installation halts at the posttrans scriplet for selinux-policy-targeted. The script fails because /etc/NetworkManager/distacher.d is not present. This fails even though the restorecon -i flag is used.
Hi, Can you provide me some details? Are there any related log/journal entries? How the kickstart file look like? What is the selinux-policy package version? This is the specfile part: %posttrans targeted %checkConfigConsistency targeted %{_sbindir}/restorecon -Ri /usr/lib/sysimage/rpm /var/lib/rpm /etc/NetworkManager/dispatcher.d The restorecon(8) manpage reads: -i ignore files that do not exist. which so far has been sufficient.
Created attachment 1887526 [details] Kickstart which triggers failure Package selinux-policy-targeted-36.10-1.fc36
Created attachment 1887527 [details] anaconda.log
Created attachment 1887528 [details] packaging.log
I rebuilt package using the following change to the spec file: %posttrans targeted %checkConfigConsistency targeted %{_sbindir}/restorecon -R /usr/lib/sysimage/rpm /var/lib/rpm if [ -d /etc/NetworkManager/dispatcher.d ]; then %{_sbindir}/restorecon -R /etc/NetworkManager/dispatcher.d fi The above scriptlet passes. I don't understand why the -i flag fails during an install.
(In reply to scott.robinson55 from comment #5) > > The above scriptlet passes. I don't understand why the -i flag fails during > an install. It will not fail if /etc/NetworkManager exists but is empty.
*** This bug has been marked as a duplicate of bug 2082547 ***