2022-10-17 11:39:49 -04:00
|
|
|
#!/usr/bin/env bash
|
2022-11-10 04:28:35 -05:00
|
|
|
|
2022-10-17 11:39:49 -04:00
|
|
|
set -euo pipefail
|
2022-11-10 04:28:35 -05:00
|
|
|
shopt -s inherit_errexit
|
2022-10-17 11:39:49 -04:00
|
|
|
|
|
|
|
TMPDIR=$(mktemp -d /tmp/uefivars-XXXXXXXXXXXXXX)
|
2023-03-06 07:29:15 -05:00
|
|
|
git clone --branch v1.0.0 https://github.com/awslabs/python-uefivars "${TMPDIR}"
|
|
|
|
cd "${TMPDIR}" && git reset 9679002a4392d8e7831d2dbda3fab41ccc5c6b8c --hard
|
2022-10-17 11:39:49 -04:00
|
|
|
|
2022-11-10 04:28:35 -05: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 11:39:49 -04:00
|
|
|
|
|
|
|
rm -rf "${TMPDIR}"
|