mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
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:
parent
7d6dd11fe3
commit
b1fb592053
9
sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/files/systemd-coreos.conf
vendored
Normal file
9
sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/files/systemd-coreos.conf
vendored
Normal 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 - - - - -
|
@ -350,11 +350,7 @@ multilib_src_install_all() {
|
|||||||
# Disable storing coredumps in journald, bug #433457
|
# Disable storing coredumps in journald, bug #433457
|
||||||
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
|
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
|
||||||
|
|
||||||
# Preserve empty dir /var, bug #437008
|
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
|
||||||
keepdir /var/lib/systemd
|
|
||||||
|
|
||||||
# Keep /etc clean
|
|
||||||
rmdir "${D}"/etc/{binfmt,modules-load,sysctl,tmpfiles}.d || die
|
|
||||||
|
|
||||||
# Don't default to graphical.target
|
# Don't default to graphical.target
|
||||||
rm "${D}"/usr/lib/systemd/system/default.target || die
|
rm "${D}"/usr/lib/systemd/system/default.target || die
|
Loading…
Reference in New Issue
Block a user