Skip to content

Commit

Permalink
fix: retry read of kexec_crash_size
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
richm committed Sep 6, 2023
1 parent 0c3a92b commit ce864b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ce864b6

Please sign in to comment.