From ce864b69bda358755bfd1abc85436dd27039a17c Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 6 Sep 2023 09:41:37 -0600 Subject: [PATCH] fix: retry read of kexec_crash_size Cause: Reading /sys/kernel/kexec_crash_size can report errno 16 - device busy. Consequence: The role fails because it cannot read the value. Fix: Retry the read. Result: The role does not fail if /sys/kernel/kexec_crash_size is busy. Signed-off-by: Rich Megginson --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index 346f52c..502c787 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -34,6 +34,7 @@ slurp: src: /sys/kernel/kexec_crash_size register: kexec_crash_size + until: kexec_crash_size is success - name: Set the kdump_reboot_required fact set_fact: