teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0888-pstore-Don-t-start-systemd-pstore.service-in-contain.patch

5808e7
From 653a635086cfeaf0af12da3a722b0ebe2029b927 Mon Sep 17 00:00:00 2001
5808e7
From: Balint Reczey <balint.reczey@canonical.com>
5808e7
Date: Mon, 16 Dec 2019 19:03:19 +0100
5808e7
Subject: [PATCH] pstore: Don't start systemd-pstore.service in containers
5808e7
5808e7
Usually it is not useful and can also fail making
5808e7
boot-and-services autopkgtest fail.
5808e7
5808e7
(cherry picked from commit 287f506c32f3f4a48ba020408f964cb0f964d752)
5808e7
5808e7
Related: #2158832
5808e7
---
5808e7
 units/systemd-pstore.service.in | 1 +
5808e7
 1 file changed, 1 insertion(+)
5808e7
5808e7
diff --git a/units/systemd-pstore.service.in b/units/systemd-pstore.service.in
5808e7
index dde21bc33e..89f34afe34 100644
5808e7
--- a/units/systemd-pstore.service.in
5808e7
+++ b/units/systemd-pstore.service.in
5808e7
@@ -11,6 +11,7 @@
5808e7
 Description=Platform Persistent Storage Archival
5808e7
 Documentation=man:systemd-pstore(8)
5808e7
 ConditionDirectoryNotEmpty=/sys/fs/pstore
5808e7
+ConditionVirtualization=!container
5808e7
 DefaultDependencies=no
5808e7
 Wants=systemd-remount-fs.service
5808e7
 After=systemd-remount-fs.service