nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0256-docs-Stop-using-polkit-pkexec-for-grub-boot-success..patch

8631a2
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8631a2
From: Hans de Goede <hdegoede@redhat.com>
8631a2
Date: Fri, 14 Sep 2018 16:39:40 +0200
8631a2
Subject: [PATCH] docs: Stop using polkit / pkexec for grub-boot-success.timer
8631a2
 / service
8631a2
8631a2
We also want to call grub2-set-bootflag under gdm and pkexec does not
8631a2
work under gdm because the gdm user has /sbin/nologin as shell.
8631a2
8631a2
So instead we are going to install grub2-set-bootflag as suid root,
8631a2
grub2-set-bootflag was written with this usage in mind, so is safe
8631a2
to be made suid root.
8631a2
8631a2
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
09e3cc
[rharwood: rebase fuzz around container]
09e3cc
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
8631a2
---
09e3cc
 docs/grub-boot-success.timer | 1 -
09e3cc
 1 file changed, 1 deletion(-)
8631a2
8631a2
diff --git a/docs/grub-boot-success.timer b/docs/grub-boot-success.timer
09e3cc
index 51d1eb238..406f17200 100644
8631a2
--- a/docs/grub-boot-success.timer
8631a2
+++ b/docs/grub-boot-success.timer
09e3cc
@@ -2,7 +2,6 @@
8631a2
 Description=Mark boot as successful after the user session has run 2 minutes
8631a2
 ConditionUser=!@system
09e3cc
 ConditionVirtualization=!container
8631a2
-ConditionPathExists=/usr/bin/pkexec
8631a2
 
8631a2
 [Timer]
8631a2
 OnActiveSec=2min