fix(sys-apps/systemd): Don't prune systemd dirs

Assorted config directories in /etc are normally empty but without them
users generally have no idea that they can actually use them. Switch to
installing them again and add tmpfiles rules to recreate them.
This commit is contained in:
Michael Marineau 2014-04-16 15:06:22 -07:00
parent 7d6dd11fe3
commit b1fb592053
2 changed files with 10 additions and 5 deletions

View File

@ -0,0 +1,9 @@
d /etc/binfmt.d - - - - -
d /etc/modules-load.d - - - - -
d /etc/sysctl.d - - - - -
d /etc/systemd - - - - -
d /etc/systemd/network - - - - -
d /etc/systemd/system - - - - -
d /etc/systemd/user - - - - -
d /etc/tmpfiles.d - - - - -
d /var/lib/systemd - - - - -

View File

@ -350,11 +350,7 @@ multilib_src_install_all() {
# Disable storing coredumps in journald, bug #433457
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
# Preserve empty dir /var, bug #437008
keepdir /var/lib/systemd
# Keep /etc clean
rmdir "${D}"/etc/{binfmt,modules-load,sysctl,tmpfiles}.d || die
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
# Don't default to graphical.target
rm "${D}"/usr/lib/systemd/system/default.target || die