Expand /dev/sda4 if present

In the latest rhel9 image we have /dev/sda4, expand this
partition if exists.

Related-Bug: rhbz#2094257
Change-Id: Iecd11806d95ae73629a5116ef95835c24b7edc90
This commit is contained in:
Sandeep Yadav 2022-06-07 15:24:50 +05:30
parent 67238fd342
commit e6e56756f4
1 changed files with 6 additions and 1 deletions

View File

@ -207,7 +207,7 @@
- when:
- undercloud_vol_check is failed
- not overcloud_as_undercloud|bool
- undercloud_partitions.stdout=='/dev/sda1' or '/dev/sda3' in undercloud_partitions.stdout
- undercloud_partitions.stdout=='/dev/sda1' or '/dev/sda3' in undercloud_partitions.stdout or '/dev/sda4' in undercloud_partitions.stdout
block:
- name: set fact for partition - /dev/sda1
@ -220,6 +220,11 @@
partition: '/dev/sda3'
when: "'/dev/sda3' in undercloud_partitions.stdout"
- name: set fact for partition - /dev/sda4
set_fact:
partition: '/dev/sda4'
when: "'/dev/sda4' in undercloud_partitions.stdout"
# Handle the resize for the whole disk image case
- name: Resize undercloud image (create target image)
command: >