This commit is contained in:
2026-03-18 13:02:09 +02:00
parent da156ddc3a
commit fb3449f6bd

View File

@@ -294,9 +294,9 @@
ansible.builtin.debug:
msg: "fw_printenv_lines_before={{ env_line_count_before.stdout | trim }}"
- name: Stop if bootloader environment looks invalid before bootenv write (<7 lines)
ansible.builtin.fail:
msg: "Aborting: fw_printenv returned only {{ env_line_count_before.stdout | trim }} lines (<7) before bootenv write — environment missing or corrupted."
- name: Note if bootloader environment looks invalid before bootenv write (<7 lines)
ansible.builtin.debug:
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
- name: Check if bootenv image is already on the device