From 1604c64b60bcb7ac4eebb7e12921ece58cbaf5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Thu, 18 Jun 2026 16:09:09 +0200 Subject: [PATCH] tests/sanity - switch to using od instead of xxd Switch to using "od" instead of "xxd" for better compatibility (eg. RHEL-9), when checking the presence of the SecureBoot trailer. --- tests/sanity/main.fmf | 1 - tests/sanity/runtest.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/sanity/main.fmf b/tests/sanity/main.fmf index e6118f7..5cec1d7 100644 --- a/tests/sanity/main.fmf +++ b/tests/sanity/main.fmf @@ -8,7 +8,6 @@ test: ./runtest.sh framework: beakerlib require: - s390utils-base - - xxd duration: 5m enabled: true adjust: diff --git a/tests/sanity/runtest.sh b/tests/sanity/runtest.sh index dc889e4..8b05e79 100755 --- a/tests/sanity/runtest.sh +++ b/tests/sanity/runtest.sh @@ -172,7 +172,7 @@ rlJournalStart rlPhaseEnd rlPhaseStartTest "Bootloader signature" - rlRun "xxd -s 16380 -l 4 -g 4 $STAGE3 | grep -q zIPL" 0 "Check SecureBoot trailer presence" + rlRun "od -j 16380 -N 4 -A x --endian big -t x4 $STAGE3 | grep -q 7a49504c" 0 "Check SecureBoot trailer presence" # only RHEL has signed bootloader if rlIsRHEL '>=8'; then rlRun "$EXTRACT -s $STAGE3 > stage3.bin.sig" 0 "Check bootloader signature"