fix: Force secure boot on old installations

This commit is contained in:
Kroese 2024-04-19 21:47:30 +02:00 committed by GitHub
parent 61fb7801bc
commit deb134336f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1100,9 +1100,9 @@ bootWindows() {
creation=$(<"$STORAGE/windows.ver")
fi
# Fall back to secure boot on installations created prior to v2.14
# Force secure boot on installations created prior to v2.14
if (( $(echo "$creation < $minimal" | bc -l) )); then
if [[ "${BOOT_MODE,,}" == "windows" ]] && [ -f "$STORAGE/windows.rom" ]; then
if [[ "${BOOT_MODE,,}" == "windows" ]]; then
BOOT_MODE="windows_secure"
if [ -f "$STORAGE/windows.rom" ] && [ ! -f "$STORAGE/$BOOT_MODE.rom" ]; then
mv "$STORAGE/windows.rom" "$STORAGE/$BOOT_MODE.rom"