diff --git a/units/systemd-journal-flush.service b/units/systemd-journal-flush.service index 1a71592b93..6423f6ea80 100644 --- a/units/systemd-journal-flush.service +++ b/units/systemd-journal-flush.service @@ -15,6 +15,7 @@ Requires=systemd-journald.service After=systemd-journald.service systemd-remount-fs.service Before=systemd-tmpfiles-setup.service RequiresMountsFor=/var/log/journal +ConditionPathExists=!/etc/initrd-release [Service] ExecStart=journalctl --flush diff --git a/units/systemd-random-seed.service.in b/units/systemd-random-seed.service.in index 5c542ec846..1aa9af9710 100644 --- a/units/systemd-random-seed.service.in +++ b/units/systemd-random-seed.service.in @@ -17,6 +17,7 @@ After=systemd-remount-fs.service Before=first-boot-complete.target shutdown.target Wants=first-boot-complete.target ConditionVirtualization=!container +ConditionPathExists=!/etc/initrd-release [Service] Type=oneshot diff --git a/units/systemd-tmpfiles-clean.timer b/units/systemd-tmpfiles-clean.timer index 6c6cfe7a08..310cfe28e3 100644 --- a/units/systemd-tmpfiles-clean.timer +++ b/units/systemd-tmpfiles-clean.timer @@ -10,6 +10,7 @@ [Unit] Description=Daily Cleanup of Temporary Directories Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8) +ConditionPathExists=!/etc/initrd-release [Timer] OnBootSec=15min