dryang / rpms / systemd

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