From 625065358b2135e3ccd1d2883cc91c60059b6592 Mon Sep 17 00:00:00 2001 From: Jason N <33561705+JasonN3@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:48:06 -0500 Subject: [PATCH] file not used --- scripts/enroll-secureboot-key.sh.in | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 scripts/enroll-secureboot-key.sh.in diff --git a/scripts/enroll-secureboot-key.sh.in b/scripts/enroll-secureboot-key.sh.in deleted file mode 100755 index dd1fd4e..0000000 --- a/scripts/enroll-secureboot-key.sh.in +++ /dev/null @@ -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}" || :