systemd/0127-fmf-Bump-inotify-limits-to-avoid-systemd-nspawn-fail.patch
Jan Macku 1e3185a7aa systemd-257-5
Resolves: RHEL-71409
2025-02-03 14:56:43 +01:00

26 lines
1.0 KiB
Diff

From f4ad1e0709755046adcc2fdbddcd406fcf6dd85b Mon Sep 17 00:00:00 2001
From: Daan De Meyer <daan.j.demeyer@gmail.com>
Date: Fri, 10 Jan 2025 15:26:37 +0100
Subject: [PATCH] fmf: Bump inotify limits to avoid systemd-nspawn failures
(cherry picked from commit c32a8cdaa0f03ae29e9edade1213cc2001b28000)
---
test/fmf/integration-tests/test.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh
index d1e43b1d7d..34bf1abfa8 100755
--- a/test/fmf/integration-tests/test.sh
+++ b/test/fmf/integration-tests/test.sh
@@ -13,6 +13,10 @@ lsmem
echo "Clock source: $(cat /sys/devices/system/clocksource/clocksource0/current_clocksource)"
+# Bump inotify limits so nspawn containers don't run out of inotify file descriptors.
+sysctl fs.inotify.max_user_watches=65536
+sysctl fs.inotify.max_user_instances=1024
+
# Allow running the integration tests downstream in dist-git with something like
# the following snippet which makes the dist-git sources available in $TMT_SOURCE_DIR:
#