mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
talos II: die when tgz archive is corrupt
This commit is contained in:
parent
a9bee2885b
commit
83591fbbc1
@ -167,7 +167,7 @@ if [ "$READ" -eq 0 ] && [ "${ROM##*.}" = tgz ]; then
|
||||
rm -rf /tmp/verified_rom
|
||||
mkdir /tmp/verified_rom
|
||||
|
||||
tar -C /tmp/verified_rom -xf $ROM
|
||||
tar -C /tmp/verified_rom -xf $ROM || die "Rom archive $ROM could not be extracted"
|
||||
if ! (cd /tmp/verified_rom/ && sha256sum -cs hashes.txt); then
|
||||
die "Provided tgz image did not pass hash verification"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user