e86b25
From ebb628f8b6e9564c036fce152f67512e5755dcfc Mon Sep 17 00:00:00 2001
e86b25
From: Karel Zak <kzak@redhat.com>
e86b25
Date: Mon, 6 Dec 2021 13:20:37 +0100
e86b25
Subject: [PATCH 68/74] fstrim: improve timer setting
e86b25
e86b25
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1916151
e86b25
Signed-off-by: Karel Zak <kzak@redhat.com>
e86b25
---
e86b25
 sys-utils/fstrim.timer | 2 ++
e86b25
 1 file changed, 2 insertions(+)
e86b25
e86b25
diff --git a/sys-utils/fstrim.timer b/sys-utils/fstrim.timer
e86b25
index 3a3762d5c..54b3c18f5 100644
e86b25
--- a/sys-utils/fstrim.timer
e86b25
+++ b/sys-utils/fstrim.timer
e86b25
@@ -1,11 +1,13 @@
e86b25
 [Unit]
e86b25
 Description=Discard unused blocks once a week
e86b25
 Documentation=man:fstrim
e86b25
+ConditionVirtualization=!container
e86b25
 
e86b25
 [Timer]
e86b25
 OnCalendar=weekly
e86b25
 AccuracySec=1h
e86b25
 Persistent=true
e86b25
+RandomizedDelaySec=6000
e86b25
 
e86b25
 [Install]
e86b25
 WantedBy=timers.target
e86b25
-- 
e86b25
2.31.1
e86b25