0d0e45d
From 83219d023b5b21826c7482d4aa3f6372f520825d Mon Sep 17 00:00:00 2001
0d0e45d
From: Florian Festi <ffesti@redhat.com>
0d0e45d
Date: Fri, 19 Feb 2016 09:56:31 +0100
0d0e45d
Subject: [PATCH] Also block idle and sleep in the systemd-inhibit plugin
0d0e45d
0d0e45d
We really should not suspend or hibernate during rpm operations. Chances are
0d0e45d
too high to not wake up properly and damage the system (see rhbz#1297984).
0d0e45d
---
0d0e45d
 plugins/systemd_inhibit.c | 2 +-
0d0e45d
 1 file changed, 1 insertion(+), 1 deletion(-)
0d0e45d
0d0e45d
diff --git a/plugins/systemd_inhibit.c b/plugins/systemd_inhibit.c
0d0e45d
index b05d3d2..4a90c44 100644
0d0e45d
--- a/plugins/systemd_inhibit.c
0d0e45d
+++ b/plugins/systemd_inhibit.c
0d0e45d
@@ -27,7 +27,7 @@ static int inhibit(void)
0d0e45d
     }
0d0e45d
 
0d0e45d
     if (msg) {
0d0e45d
-	const char *what = "shutdown";
0d0e45d
+	const char *what = "idle:sleep:shutdown";
0d0e45d
 	const char *mode = "block";
0d0e45d
 	const char *who = "RPM";
0d0e45d
 	const char *reason = "Transaction running";
0d0e45d
-- 
0d0e45d
2.5.0
0d0e45d