/usr/lib/tmpfiles.d/systemd.conf also exists. Some other package
may have created /usr/lib/tmpfiles.d even though it is not used.
esac
%post [rpm,deb]
- # Create /usr/lib/tmpfiles.d/sudo.conf if /lib/systemd exists
- if [ -d /lib/systemd ]; then
+ # Create /usr/lib/tmpfiles.d/sudo.conf if systemd is configured.
+ if [ -r /usr/lib/tmpfiles.d/systemd.conf ]; then
cat > /usr/lib/tmpfiles.d/sudo.conf <<-EOF
d %{rundir} 0711 root root
D %{rundir}/ts 0700 root root