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:
parent
bb93245aca
commit
1604c64b60
@ -8,7 +8,6 @@ test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
require:
|
||||
- s390utils-base
|
||||
- xxd
|
||||
duration: 5m
|
||||
enabled: true
|
||||
adjust:
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user