Update install.sh

This commit is contained in:
Kroese 2024-01-26 21:42:44 +01:00 committed by GitHub
parent ff42b0314b
commit 1b5dfe9374
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -318,6 +318,7 @@ findVersion() {
[[ "${name,,}" == *"server 2019"* ]] && detected="win2019-eval" [[ "${name,,}" == *"server 2019"* ]] && detected="win2019-eval"
[[ "${name,,}" == *"server 2016"* ]] && detected="win2016-eval" [[ "${name,,}" == *"server 2016"* ]] && detected="win2016-eval"
[[ "${name,,}" == *"windows 7"* ]] && detected="win7x64" [[ "${name,,}" == *"windows 7"* ]] && detected="win7x64"
[[ "${name,,}" == *"windows vista"* ]] && detected="winvistax64"
if [[ "${name,,}" == *"windows 10"* ]]; then if [[ "${name,,}" == *"windows 10"* ]]; then
if [[ "${name,,}" == *"enterprise ltsc"* ]]; then if [[ "${name,,}" == *"enterprise ltsc"* ]]; then
@ -409,6 +410,7 @@ prepareImage() {
local dir="$2" local dir="$2"
if [[ "${DETECTED,,}" != "win7x64"* ]] && [[ "${BOOT_MODE,,}" == "windows" ]]; then if [[ "${DETECTED,,}" != "win7x64"* ]] && [[ "${BOOT_MODE,,}" == "windows" ]]; then
if [[ "${DETECTED,,}" != "win7x64"* ]] && [[ "${DETECTED,,}" != "winxpx64"* ]]; then
if [ -f "$dir/$ETFS" ] && [ -f "$dir/$EFISYS" ]; then if [ -f "$dir/$ETFS" ] && [ -f "$dir/$EFISYS" ]; then
return 0 return 0
@ -421,6 +423,7 @@ prepareImage() {
fi fi
fi fi
fi
ETFS="boot.img" ETFS="boot.img"
BOOT_MODE="windows_legacy" BOOT_MODE="windows_legacy"