Extend ext4_postinstall conditional for UEFI

We have an extra boot partition on UEFI as well.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-12-04 14:59:03 -08:00
parent c6f1a03a92
commit 9d9a0352fb

View File

@ -7,8 +7,8 @@ sub run {
my $count = 3;
my $devroot = 'vda1';
my $devboot = 'vda2';
if (get_var('OFW')) {
$count = 4; # for PowerPC there is also a PreP partition.
if (get_var('OFW') || get_var('UEFI')) {
$count = 4; # extra boot partition (PreP or ESP)
$devroot = 'vda2';
$devboot = 'vda3';
}