瀏覽代碼

feat: Enable secure boot on multi-socket systems (#535)

Kroese 1 年之前
父節點
當前提交
0971fb7492
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/install.sh

+ 5 - 0
src/install.sh

@@ -146,6 +146,11 @@ finishInstall() {
           echo "$BOOT_MODE" > "$STORAGE/windows.mode"
           echo "$BOOT_MODE" > "$STORAGE/windows.mode"
         fi
         fi
       fi
       fi
+      # Enable secure boot on multi-socket systems to workaround freeze
+      if [ -n "$SOCKETS" ] && [[ "$SOCKETS" != "1" ]]; then
+        BOOT_MODE="windows_secure"
+        echo "$BOOT_MODE" > "$STORAGE/windows.mode"    
+      fi
     fi
     fi
   fi
   fi