anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0131-units-don-t-run-readahead-done-timers-in-containers.patch

572a44
From 295730ffeef69a057773ba201cb1ad9e81c187fa Mon Sep 17 00:00:00 2001
572a44
From: Lennart Poettering <lennart@poettering.net>
572a44
Date: Wed, 11 Dec 2013 23:31:34 +0100
572a44
Subject: [PATCH] units: don't run readahead done timers in containers
572a44
572a44
We don't run the collector in the container either, hence we don't need
572a44
to stop it either.
572a44
---
572a44
 units/systemd-readahead-done.service.in | 1 +
572a44
 units/systemd-readahead-done.timer      | 1 +
572a44
 2 files changed, 2 insertions(+)
572a44
572a44
diff --git a/units/systemd-readahead-done.service.in b/units/systemd-readahead-done.service.in
572a44
index c3b2ac5..e0d9579 100644
572a44
--- a/units/systemd-readahead-done.service.in
572a44
+++ b/units/systemd-readahead-done.service.in
572a44
@@ -12,6 +12,7 @@ DefaultDependencies=no
572a44
 Conflicts=shutdown.target
572a44
 After=default.target
572a44
 Before=shutdown.target
572a44
+ConditionVirtualization=no
572a44
 
572a44
 [Service]
572a44
 Type=oneshot
572a44
diff --git a/units/systemd-readahead-done.timer b/units/systemd-readahead-done.timer
572a44
index 41bfb2b..a9f6278 100644
572a44
--- a/units/systemd-readahead-done.timer
572a44
+++ b/units/systemd-readahead-done.timer
572a44
@@ -12,6 +12,7 @@ DefaultDependencies=no
572a44
 Conflicts=shutdown.target
572a44
 After=default.target
572a44
 Before=shutdown.target
572a44
+ConditionVirtualization=no
572a44
 
572a44
 [Timer]
572a44
 OnActiveSec=30s