Skip to content

Commit

Permalink
microos/image_checks: Expect unpartitioned 2048 sectors at disk start
Browse files Browse the repository at this point in the history
For Leap Micro 5.4+ aarch64 builds, there is an 1M unpartitioned space that
needs to be accounted for.

Signed-off-by: Ricardo B. Marliere <[email protected]>
  • Loading branch information
rbmarliere committed Oct 22, 2024
1 parent 0dfae9b commit b7d3e56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/microos/image_checks.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use base "consoletest";
use strict;
use warnings;
use testapi;
use version_utils qw(is_microos is_sle_micro is_jeos);
use version_utils qw(is_microos is_sle_micro is_jeos is_leap_micro);
use Utils::Architectures qw(is_aarch64);

sub run {
Expand Down Expand Up @@ -42,6 +42,9 @@ sub run {
$left_sectors = 1792;
record_soft_failure "bsc#1220722: no unpartitioned space left on aarch64";
}
if (is_leap_micro("5.4+") && is_aarch64) {
$left_sectors = 2048;
}

validate_script_output("sfdisk --list-free /dev/$disk", qr/Unpartitioned space .* $left_sectors sectors/);

Expand Down

0 comments on commit b7d3e56

Please sign in to comment.