Fixes to assertion logic, and cleanup of unused stuffs
This commit is contained in:
@ -21,14 +21,6 @@
|
||||
bigboot_expansion_diff:
|
||||
"{{ bigboot_size_target | human_to_bytes - bigboot_boot_partsize | human_to_bytes }}"
|
||||
|
||||
- name: Convert size difference to MB
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_size_expansion_mb: "{{ bigboot_expansion_diff | int | human_readable(unit='M') }}"
|
||||
|
||||
- name: Set bigboot size 4k aligned
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_size: "{{ bigboot_size_expansion_mb[:-2] | int | get_block_size_up }}"
|
||||
|
||||
- name: Validate if we need to expand boot
|
||||
block:
|
||||
- name: Set flag for Bigboot execution
|
||||
@ -48,4 +40,7 @@
|
||||
|
||||
- name: Expansion of /boot required
|
||||
ansible.builtin.debug:
|
||||
msg: "Will need to expand /boot by an additional {{ bigboot_size }}."
|
||||
msg: >
|
||||
Expansion of /boot is required.
|
||||
Will attempt to increase to {{ bigboot_size_target }}, or
|
||||
{{ bigboot_size_min }} at the least."
|
||||
|
Reference in New Issue
Block a user