Blame SOURCES/0211-grub-boot-success.timer-Only-run-if-not-in-a-contain.patch

5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: Gena Makhomed <gmm@csdoc.com>
5593c8
Date: Thu, 1 Jul 2021 01:07:46 +0200
5593c8
Subject: [PATCH] grub-boot-success.timer: Only run if not in a container
5593c8
5593c8
The grub-boot-success.timer should be disabled inside a container since it
5593c8
leads to the following error:
5593c8
5593c8
Jan 09 22:56:38 test sshd[8786]: pam_unix(sshd:session): session opened for user www(uid=1000) by (uid=0)
5593c8
Jan 09 22:58:39 test systemd[8857]: Starting Mark boot as successful...
5593c8
Jan 09 22:58:39 test systemd[8857]: grub-boot-success.service: Main process exited, code=exited, status=1/FAILURE
5593c8
Jan 09 22:58:39 test systemd[8857]: grub-boot-success.service: Failed with result 'exit-code'.
5593c8
Jan 09 22:58:39 test systemd[8857]: Failed to start Mark boot as successful.
5593c8
Jan 09 22:58:39 test grub2-set-bootflag[10034]: Error canonicalizing /boot/grub2/grubenv filename: No such file or directory
5593c8
5593c8
Resolves: rhbz#1914571
5593c8
---
5593c8
 docs/grub-boot-success.timer | 1 +
5593c8
 1 file changed, 1 insertion(+)
5593c8
5593c8
diff --git a/docs/grub-boot-success.timer b/docs/grub-boot-success.timer
5593c8
index 5d8fcba21aa..406f1720056 100644
5593c8
--- a/docs/grub-boot-success.timer
5593c8
+++ b/docs/grub-boot-success.timer
5593c8
@@ -1,6 +1,7 @@
5593c8
 [Unit]
5593c8
 Description=Mark boot as successful after the user session has run 2 minutes
5593c8
 ConditionUser=!@system
5593c8
+ConditionVirtualization=!container
5593c8
 
5593c8
 [Timer]
5593c8
 OnActiveSec=2min