constellation/image/secure-boot/aws/create_uefivars.sh

13 lines
399 B
Bash
Raw Normal View History

2022-10-17 11:39:49 -04:00
#!/usr/bin/env bash
2022-10-17 11:39:49 -04:00
set -euo pipefail
shopt -s inherit_errexit
2022-10-17 11:39:49 -04:00
TMPDIR=$(mktemp -d /tmp/uefivars-XXXXXXXXXXXXXX)
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
"${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}"