mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
file not used
This commit is contained in:
parent
1d86344997
commit
625065358b
1 changed files with 0 additions and 25 deletions
|
|
@ -1,25 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -oue pipefail
|
|
||||||
|
|
||||||
readonly ENROLLMENT_PASSWORD=@ENROLLMENT_PASSWORD@
|
|
||||||
readonly SECUREBOOT_KEY="/run/install/repo/sb_pubkey.der"
|
|
||||||
|
|
||||||
if [[ ! -d "/sys/firmware/efi" ]]; then
|
|
||||||
echo "EFI mode not detected. Skipping key enrollment."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -f "${SECUREBOOT_KEY}" ]]; then
|
|
||||||
echo "Secure boot key not provided: ${SECUREBOOT_KEY}"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
|
||||||
if [[ ":Jupiter:Galileo:" =~ ":$SYS_ID:" ]]; then
|
|
||||||
echo "Steam Deck hardware detected. Skipping key enrollment."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
mokutil --timeout -1 || :
|
|
||||||
echo -e "${ENROLLMENT_PASSWORD}\n${ENROLLMENT_PASSWORD}" | mokutil --import "${SECUREBOOT_KEY}" || :
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue