mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 20:47:12 +01:00
fix: Preserve WIM indices during edition detection (#1954)
This commit is contained in:
+11
-27
@@ -759,20 +759,6 @@ normalizeEditionID() {
|
||||
esac
|
||||
|
||||
case "${id,,}" in
|
||||
"winvista"* )
|
||||
case "$edition" in
|
||||
"business" )
|
||||
edition="" ;;
|
||||
"home-basic" | "home-premium" )
|
||||
edition="home" ;;
|
||||
esac
|
||||
;;
|
||||
"win7"* )
|
||||
case "$edition" in
|
||||
"home-basic" | "home-premium" )
|
||||
edition="home" ;;
|
||||
esac
|
||||
;;
|
||||
"win10"* | "win11"* )
|
||||
case "$edition" in
|
||||
"iot-enterprise-ltsc" | \
|
||||
@@ -866,19 +852,17 @@ normalizeServerEditionID() {
|
||||
edition=$(normalizeServerEdition "$1") || return 1
|
||||
|
||||
case "$edition" in
|
||||
"" | "core" | \
|
||||
"standard" | "standard-core" | "standardcore" | \
|
||||
"serverstandard" | "serverstandardcore" | \
|
||||
"datacenter" | "datacenter-core" | "datacentercore" | \
|
||||
"serverdatacenter" | "serverdatacentercore" | \
|
||||
"enterprise" | "enterprise-core" | "enterprisecore" | \
|
||||
"serverenterprise" | "serverenterprisecore" | \
|
||||
"web" | "web-core" | "webcore" | \
|
||||
"serverweb" | "serverwebcore" | \
|
||||
"foundation" | "serverfoundation" | \
|
||||
"essentials" | "serveressentials" )
|
||||
edition=""
|
||||
;;
|
||||
"" | "standard" | "serverstandard" ) edition="" ;;
|
||||
"core" | "standard-core" | "standardcore" | "serverstandardcore" ) edition="standard-core" ;;
|
||||
"datacenter" | "serverdatacenter" ) edition="datacenter" ;;
|
||||
"datacenter-core" | "datacentercore" | "serverdatacentercore" ) edition="datacenter-core" ;;
|
||||
"enterprise" | "serverenterprise" ) edition="enterprise" ;;
|
||||
"enterprise-core" | "enterprisecore" | "serverenterprisecore" ) edition="enterprise-core" ;;
|
||||
"web" | "serverweb" ) edition="web" ;;
|
||||
"web-core" | "webcore" | "serverwebcore" ) edition="web-core" ;;
|
||||
"foundation" | "serverfoundation" ) edition="foundation" ;;
|
||||
"essentials" | "serveressentials" ) edition="essentials" ;;
|
||||
* ) edition="unknown" ;;
|
||||
esac
|
||||
|
||||
echo "$edition"
|
||||
|
||||
Reference in New Issue
Block a user