1302
This commit is contained in:
@@ -294,9 +294,9 @@
|
|||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "fw_printenv_lines_before={{ env_line_count_before.stdout | trim }}"
|
msg: "fw_printenv_lines_before={{ env_line_count_before.stdout | trim }}"
|
||||||
|
|
||||||
- name: Stop if bootloader environment looks invalid before bootenv write (<7 lines)
|
- name: Note if bootloader environment looks invalid before bootenv write (<7 lines)
|
||||||
ansible.builtin.fail:
|
ansible.builtin.debug:
|
||||||
msg: "Aborting: fw_printenv returned only {{ env_line_count_before.stdout | trim }} lines (<7) before bootenv write — environment missing or corrupted."
|
msg: "Proceeding with bootenv repair even though fw_printenv returned only {{ env_line_count_before.stdout | trim }} lines (<7) before bootenv write."
|
||||||
when: (env_line_count_before.stdout | trim | int) < 7
|
when: (env_line_count_before.stdout | trim | int) < 7
|
||||||
|
|
||||||
- name: Check if bootenv image is already on the device
|
- name: Check if bootenv image is already on the device
|
||||||
|
|||||||
Reference in New Issue
Block a user