Tweak the UUID handling to be clearer

This commit is contained in:
Steve McIntyre 2024-02-17 17:19:57 +00:00
parent d6a5a165a3
commit 3cf4042d82

View File

@ -16,9 +16,11 @@ ARCH=$1
IN=$2 IN=$2
OUT=$3 OUT=$3
DEBIAN_UUID="fa31923d-6047-40bf-81d0-e63edefcf194"
# This needs to be fixed to make builds reproducible, of course. If # This needs to be fixed to make builds reproducible, of course. If
# you're deriving from Debian, please generate your own. # you're deriving from Debian, please generate your own.
DEBIAN_UUID="fa31923d-6047-40bf-81d0-e63edefcf194" UUID="$DEBIAN_UUID"
rm -f $OUT rm -f $OUT
if [ -x /usr/bin/efisiglist ] ; then if [ -x /usr/bin/efisiglist ] ; then
@ -36,7 +38,7 @@ else
for HASH in $(grep -E "[[:xdigit:]]{32} $ARCH" < $IN | \ for HASH in $(grep -E "[[:xdigit:]]{32} $ARCH" < $IN | \
awk '{print $1}' | sort | uniq); do awk '{print $1}' | sort | uniq); do
echo " Adding $HASH to dbx list" echo " Adding $HASH to dbx list"
efisecdb -g "$DEBIAN_UUID" -a -t sha256 -h $HASH $INTMP -o $OUT efisecdb -g "$UUID" -a -t sha256 -h $HASH $INTMP -o $OUT
# Subsequent passes need to read the previous output as input # Subsequent passes need to read the previous output as input
# each time, and won't overwrite the output. # each time, and won't overwrite the output.