From f87b269b0b43702266a8e2792087e2695364eb1e Mon Sep 17 00:00:00 2001 From: Matthew Burket Date: Wed, 22 Jan 2025 15:43:44 -0600 Subject: [PATCH] Make coredump_disable_storage/coredumps_storage_none.pass work on RHEL 10 --- .../tests/coredumps_storage_none.pass.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux_os/guide/system/permissions/restrictions/coredumps/coredump_disable_storage/tests/coredumps_storage_none.pass.sh b/linux_os/guide/system/permissions/restrictions/coredumps/coredump_disable_storage/tests/coredumps_storage_none.pass.sh index 8d2a5af1921..0643b2f8074 100644 --- a/linux_os/guide/system/permissions/restrictions/coredumps/coredump_disable_storage/tests/coredumps_storage_none.pass.sh +++ b/linux_os/guide/system/permissions/restrictions/coredumps/coredump_disable_storage/tests/coredumps_storage_none.pass.sh @@ -1,3 +1,7 @@ #!/bin/bash +mkdir -p /etc/systemd/ +if ! grep -q "[Coredump]" /etc/systemd/coredump.conf; then + echo "[Coredump]" >> /etc/systemd/coredump.conf +fi echo Storage=none >> /etc/systemd/coredump.conf