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.
This commit is contained in:
Dan Horák 2026-06-18 16:09:09 +02:00
parent bb93245aca
commit 1604c64b60
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ test: ./runtest.sh
framework: beakerlib
require:
- s390utils-base
- xxd
duration: 5m
enabled: true
adjust:

View File

@ -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"