daandemeyer / rpms / systemd

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