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