2022-10-17 17:39:49 +02:00
|
|
|
#!/usr/bin/env bash
|
2022-11-10 10:28:35 +01:00
|
|
|
|
2022-10-17 17:39:49 +02:00
|
|
|
set -euo pipefail
|
2022-11-10 10:28:35 +01:00
|
|
|
shopt -s inherit_errexit
|
2022-10-17 17:39:49 +02:00
|
|
|
|
|
|
|
TMPDIR=$(mktemp -d /tmp/uefivars-XXXXXXXXXXXXXX)
|
2023-03-06 13:29:15 +01:00
|
|
|
git clone --branch v1.0.0 https://github.com/awslabs/python-uefivars "${TMPDIR}"
|
|
|
|
cd "${TMPDIR}" && git reset 9679002a4392d8e7831d2dbda3fab41ccc5c6b8c --hard
|
2022-10-17 17:39:49 +02:00
|
|
|
|
2022-11-10 10:28:35 +01:00
|
|
|
"${TMPDIR}/uefivars.py" -i none -o aws -O "$1" -P "${PKI}"/PK.esl -K "${PKI}"/KEK.esl --db "${PKI}"/db.esl
|
2022-10-17 17:39:49 +02:00
|
|
|
|
|
|
|
rm -rf "${TMPDIR}"
|