[ovs-dev] [PATCH 2/2] rhel: delete transient ports on boot when starting ovsdb-server

Timothy M. Redaelli tredaelli at redhat.com
Mon May 8 14:35:49 UTC 2017


On 05/05/2017 08:41 PM, Aaron Conole wrote:
[...]
>> @@ -534,7 +538,7 @@ fi
>>  %doc COPYING NOTICE README.rst NEWS rhel/README.RHEL.rst
>>  /var/lib/openvswitch
>>  /var/log/openvswitch
>> -%ghost %attr(755,root,root) %{_rundir}/openvswitch
>> +%dir %{_rundir}/openvswitch
> 
> Doesn't this still need to be flagged as %ghost?

If you use %ghost the directory is not created by rpm and it's only
created after a reboot, since tmpfiles.d scripts are only executed by
systemd on boot.

Using %dir is the suggested way by Fedora Wiki:
https://fedoraproject.org/wiki/Packaging:Tmpfiles.d


More information about the dev mailing list