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