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

12 lines
307 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 https://github.com/awslabs/python-uefivars "${TMPDIR}"
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}"