]> git.proxmox.com Git - efi-boot-shim.git/commitdiff
Tweak the UUID handling to be clearer
authorSteve McIntyre <steve@einval.com>
Sat, 17 Feb 2024 17:19:57 +0000 (17:19 +0000)
committerSteve McIntyre <steve@einval.com>
Thu, 2 May 2024 21:13:14 +0000 (22:13 +0100)
debian/generate_dbx_list

index 9f7689432bc70b7ab2310f14c109a90099d9ab18..5fbd9c41742153815a0610405651a6860036204c 100755 (executable)
@@ -16,9 +16,11 @@ ARCH=$1
 IN=$2
 OUT=$3
 
+DEBIAN_UUID="fa31923d-6047-40bf-81d0-e63edefcf194"
+
 # This needs to be fixed to make builds reproducible, of course. If
 # you're deriving from Debian, please generate your own.
-DEBIAN_UUID="fa31923d-6047-40bf-81d0-e63edefcf194"
+UUID="$DEBIAN_UUID"
 
 rm -f $OUT
 if [ -x /usr/bin/efisiglist ] ; then
@@ -36,7 +38,7 @@ else
     for HASH in $(grep -E "[[:xdigit:]]{32} $ARCH" < $IN | \
                      awk '{print $1}' | sort | uniq); do
        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
        # each time, and won't overwrite the output.