1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-05-03 15:14:30 +01:00

Relocate HAOS Systemd drop-ins to /usr/lib/systemd (#3582)

* Relocate HAOS Systemd drop-ins to /usr/lib/systemd

With some exceptions, Systemd drop-ins overriding default unit configuration
have been placed to `/etc/systemd/system`. This is meant for user overrides of
those, or per `man 5 systemd.unit` for "system unites created by the
administrator". Relocate all of these to `/usr/lib/systemd` which should be
used as path for units "installed by the distribution package manager" which is
closer to what we're trying to achieve.

This will make it easier to detect changes to unit files once we enable the
possibility to edit the content of /etc.

* Patch systemd-timesyncd.service instead of replacing it fully
This commit is contained in:
Jan Čermák
2024-09-12 12:47:22 +02:00
committed by GitHub
parent 2e6b38a0e1
commit 2916a1c247
21 changed files with 41 additions and 61 deletions

View File

@@ -0,0 +1,6 @@
[Unit]
FailureAction=reboot
[Service]
ExecStartPre=/usr/libexec/docker-disk-check
ExecStopPost=/usr/libexec/docker-failure

View File

@@ -0,0 +1,5 @@
[Unit]
RequiresMountsFor=/etc/docker /mnt/data /var/lib/docker
[Service]
OOMScoreAdjust=-400

View File

@@ -0,0 +1,2 @@
[Service]
TasksMax=infinity