Skip to content

Commit c8f0d87

Browse files
authored
fix: Missing x86 drivers for Windows XP (#755)
1 parent b2251a4 commit c8f0d87

File tree

2 files changed

+12
-215
lines changed

2 files changed

+12
-215
lines changed

readme.md

-4
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ kubectl apply -f kubernetes.yml
105105
| `2012` | Windows Server 2012 | 4.3 GB |
106106
| `2008` | Windows Server 2008 | 3.0 GB |
107107
| `2003` | Windows Server 2003 | 0.6 GB |
108-
||||
109-
| `core11` | Tiny 11 Core | 2.1 GB |
110-
| `tiny11` | Tiny 11 | 3.8 GB |
111-
| `tiny10` | Tiny 10 | 3.6 GB |
112108

113109
> [!TIP]
114110
> To install ARM64 versions of Windows use [dockur/windows-arm](https://github.com/dockur/windows-arm/).

src/define.sh

+12-211
Original file line numberDiff line numberDiff line change
@@ -950,105 +950,10 @@ getLink3() {
950950
local sum=""
951951
local size=""
952952
local host="https://drive.massgrave.dev"
953-
local s22="windows_server_2022_updated_aug_2024_x64_dvd_17b2bb17"
954-
local c11="windows_11_consumer_editions_version_23h2_updated_aug_2024_x64_dvd_d3e1c088"
955-
local b11="windows_11_business_editions_version_23h2_updated_aug_2024_x64_dvd"
956-
local c10="windows_10_consumer_editions_version_22h2_updated_aug_2024_x86_dvd_2454bb57"
957-
local b10="windows_10_business_editions_version_22h2_updated_aug_2024_x64_dvd"
958953

959954
culture=$(getLanguage "$lang" "culture")
960955

961956
case "${id,,}" in
962-
"win11x64" )
963-
case "${culture,,}" in
964-
"ar" | "ar-"* ) url="ar-sa_${c11}.iso" ;;
965-
"bg" | "bg-"* ) url="bg-bg_${c11}.iso" ;;
966-
"cs" | "cs-"* ) url="cs-cz_${c11}.iso" ;;
967-
"da" | "da-"* ) url="da-dk_${c11}.iso" ;;
968-
"de" | "de-"* ) url="de-de_${c11}.iso" ;;
969-
"el" | "el-"* ) url="el-gr_${c11}.iso" ;;
970-
"gb" | "en-gb" ) url="en-gb_${c11}.iso" ;;
971-
"en" | "en-"* )
972-
size=7174344704
973-
sum="c37962a65405106323ccd9c8b26a148959413a8b4cae22be315338f283a25e60"
974-
url="en-us_${c11}.iso" ;;
975-
"mx" | "es-mx" ) url="es-mx_${c11}.iso" ;;
976-
"es" | "es-"* ) url="es-es_${c11}.iso" ;;
977-
"et" | "et-"* ) url="et-ee_${c11}.iso" ;;
978-
"fi" | "fi-"* ) url="fi-fi_${c11}.iso" ;;
979-
"ca" | "fr-ca" ) url="fr-ca_${c11}.iso" ;;
980-
"fr" | "fr-"* ) url="fr-fr_${c11}.iso" ;;
981-
"he" | "he-"* ) url="he-il_${c11}.iso" ;;
982-
"hr" | "hr-"* ) url="hr-hr_${c11}.iso" ;;
983-
"hu" | "hu-"* ) url="hu-hu_${c11}.iso" ;;
984-
"it" | "it-"* ) url="it-it_${c11}.iso" ;;
985-
"ja" | "ja-"* ) url="ja-jp_${c11}.iso" ;;
986-
"ko" | "ko-"* ) url="ko-kr_${c11}.iso" ;;
987-
"lt" | "lt-"* ) url="lt-lt_${c11}.iso" ;;
988-
"lv" | "lv-"* ) url="lv-lv_${c11}.iso" ;;
989-
"nb" | "nb-"* ) url="nb-no_${c11}.iso" ;;
990-
"nl" | "nl-"* ) url="nl-nl_${c11}.iso" ;;
991-
"pl" | "pl-"* ) url="pl-pl_${c11}.iso" ;;
992-
"br" | "pt-br" ) url="pt-br_${c11}.iso" ;;
993-
"pt" | "pt-"* ) url="pt-pt_${c11}.iso" ;;
994-
"ro" | "ro-"* ) url="ro-ro_${c11}.iso" ;;
995-
"ru" | "ru-"* ) url="ru-ru_${c11}.iso" ;;
996-
"sk" | "sk-"* ) url="sk-sk_${c11}.iso" ;;
997-
"sl" | "sl-"* ) url="sl-si_${c11}.iso" ;;
998-
"sr" | "sr-"* ) url="sr-latn-rs_${c11}.iso" ;;
999-
"sv" | "sv-"* ) url="sv-se_${c11}.iso" ;;
1000-
"th" | "th-"* ) url="th-th_${c11}.iso" ;;
1001-
"tr" | "tr-"* ) url="tr-tr_${c11}.iso" ;;
1002-
"uk" | "uk-"* ) url="uk-ua_${c11}.iso" ;;
1003-
"zh-hk" | "zh-tw" ) url="zh-tw_${c11}.iso" ;;
1004-
"zh" | "zh-"* ) url="zh-cn_${c11}.iso" ;;
1005-
esac
1006-
;;
1007-
"win11x64-enterprise" | "win11x64-enterprise-eval" )
1008-
case "${culture,,}" in
1009-
"ar" | "ar-"* ) url="ar-sa_${b11}_e8f50c77.iso" ;;
1010-
"bg" | "bg-"* ) url="bg-bg_${b11}_4917d646.iso" ;;
1011-
"cs" | "cs-"* ) url="cs-cz_${b11}_7423efd7.iso" ;;
1012-
"da" | "da-"* ) url="da-dk_${b11}_320e7939.iso" ;;
1013-
"de" | "de-"* ) url="de-de_${b11}_0a30ec34.iso" ;;
1014-
"el" | "el-"* ) url="el-gr_${b11}_8094f396.iso" ;;
1015-
"gb" | "en-gb" ) url="en-gb_${b11}_d2bfefb8.iso" ;;
1016-
"en" | "en-"* )
1017-
size=7058937856
1018-
sum="16366a1970d98b590295f5858eb2aae5577ef870a148de42bd3ed051e78010fb"
1019-
url="en-us_${b11}_4b6aa6b4.iso" ;;
1020-
"mx" | "es-mx" ) url="es-mx_${b11}_a3ff371e.iso" ;;
1021-
"es" | "es-"* ) url="es-es_${b11}_49584d0f.iso" ;;
1022-
"et" | "et-"* ) url="et-ee_${b11}_9418af12.iso" ;;
1023-
"fi" | "fi-"* ) url="fi-fi_${b11}_f99ef6d3.iso" ;;
1024-
"ca" | "fr-ca" ) url="fr-ca_${b11}_3b3e23dc.iso" ;;
1025-
"fr" | "fr-"* ) url="fr-fr_${b11}_e5a1eeb4.iso" ;;
1026-
"he" | "he-"* ) url="he-il_${b11}_52d76f40.iso" ;;
1027-
"hr" | "hr-"* ) url="hr-hr_${b11}_c93171de.iso" ;;
1028-
"hu" | "hu-"* ) url="hu-hu_${b11}_0ac31337.iso" ;;
1029-
"it" | "it-"* ) url="it-it_${b11}_d1670509.iso" ;;
1030-
"ja" | "ja-"* ) url="ja-jp_${b11}_6394f8d8.iso" ;;
1031-
"ko" | "ko-"* ) url="ko-kr_${b11}_ad04a091.iso" ;;
1032-
"lt" | "lt-"* ) url="lt-lt_${b11}_75df52ae.iso" ;;
1033-
"lv" | "lv-"* ) url="lv-lv_${b11}_f498cffc.iso" ;;
1034-
"nb" | "nb-"* ) url="nb-no_${b11}_a4cdddfc.iso" ;;
1035-
"nl" | "nl-"* ) url="nl-nl_${b11}_03c01555.iso" ;;
1036-
"pl" | "pl-"* ) url="pl-pl_${b11}_d5274f4d.iso" ;;
1037-
"br" | "pt-br" ) url="pt-br_${b11}_662860be.iso" ;;
1038-
"pt" | "pt-"* ) url="pt-pt_${b11}_ec70d402.iso" ;;
1039-
"ro" | "ro-"* ) url="ro-ro_${b11}_d76af266.iso" ;;
1040-
"ru" | "ru-"* ) url="ru-ru_${b11}_689ea9dc.iso" ;;
1041-
"sk" | "sk-"* ) url="sk-sk_${b11}_358e8bce.iso" ;;
1042-
"sl" | "sl-"* ) url="sl-si_${b11}_69a9feb3.iso" ;;
1043-
"sr" | "sr-"* ) url="sr-latn-rs_${b11}_23247970.iso" ;;
1044-
"sv" | "sv-"* ) url="sv-se_${b11}_2b228b50.iso" ;;
1045-
"th" | "th-"* ) url="th-th_${b11}_6914e97f.iso" ;;
1046-
"tr" | "tr-"* ) url="tr-tr_${b11}_20dd43f1.iso" ;;
1047-
"uk" | "uk-"* ) url="uk-ua_${b11}_ed5be63e.iso" ;;
1048-
"zh-hk" | "zh-tw" ) url="zh-tw_${b11}_beaade88.iso" ;;
1049-
"zh" | "zh-"* ) url="zh-cn_${b11}_6ca91c94.iso" ;;
1050-
esac
1051-
;;
1052957
"win11x64-iot" | "win11x64-enterprise-iot-eval" )
1053958
[[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-us" ]] && return 0
1054959
size=4821989376
@@ -1061,96 +966,6 @@ getLink3() {
1061966
sum="e8f1431c4e6289b3997c20eadbb2576670300bb6e1cf8948b5d7af179010a962"
1062967
url="26100.1.240331-1435.ge_release_CLIENTENTERPRISE_OEM_x64FRE_en-us.iso"
1063968
;;
1064-
"win10x64" )
1065-
case "${culture,,}" in
1066-
"ar" | "ar-"* ) url="ar-sa_${c10}.iso" ;;
1067-
"bg" | "bg-"* ) url="bg-bg_${c10}.iso" ;;
1068-
"cs" | "cs-"* ) url="cs-cz_${c10}.iso" ;;
1069-
"da" | "da-"* ) url="da-dk_${c10}.iso" ;;
1070-
"de" | "de-"* ) url="de-de_${c10}.iso" ;;
1071-
"el" | "el-"* ) url="el-gr_${c10}.iso" ;;
1072-
"gb" | "en-gb" ) url="en-gb_${c10}.iso" ;;
1073-
"en" | "en-"* )
1074-
size=4950300672
1075-
sum="bbe2caba5ae2562166ed1ed0d7b54678c7cb9a3fe25dcb1e27c8f6993a95b498"
1076-
url="en-us_${c10}.iso" ;;
1077-
"mx" | "es-mx" ) url="es-mx_${c10}.iso" ;;
1078-
"es" | "es-"* ) url="es-es_${c10}.iso" ;;
1079-
"et" | "et-"* ) url="et-ee_${c10}.iso" ;;
1080-
"fi" | "fi-"* ) url="fi-fi_${c10}.iso" ;;
1081-
"ca" | "fr-ca" ) url="fr-ca_${c10}.iso" ;;
1082-
"fr" | "fr-"* ) url="fr-fr_${c10}.iso" ;;
1083-
"he" | "he-"* ) url="he-il_${c10}.iso" ;;
1084-
"hr" | "hr-"* ) url="hr-hr_${c10}.iso" ;;
1085-
"hu" | "hu-"* ) url="hu-hu_${c10}.iso" ;;
1086-
"it" | "it-"* ) url="it-it_${c10}.iso" ;;
1087-
"ja" | "ja-"* ) url="ja-jp_${c10}.iso" ;;
1088-
"ko" | "ko-"* ) url="ko-kr_${c10}.iso" ;;
1089-
"lt" | "lt-"* ) url="lt-lt_${c10}.iso" ;;
1090-
"lv" | "lv-"* ) url="lv-lv_${c10}.iso" ;;
1091-
"nb" | "nb-"* ) url="nb-no_${c10}.iso" ;;
1092-
"nl" | "nl-"* ) url="nl-nl_${c10}.iso" ;;
1093-
"pl" | "pl-"* ) url="pl-pl_${c10}.iso" ;;
1094-
"br" | "pt-br" ) url="pt-br_${c10}.iso" ;;
1095-
"pt" | "pt-"* ) url="pt-pt_${c10}.iso" ;;
1096-
"ro" | "ro-"* ) url="ro-ro_${c10}.iso" ;;
1097-
"ru" | "ru-"* ) url="ru-ru_${c10}.iso" ;;
1098-
"sk" | "sk-"* ) url="sk-sk_${c10}.iso" ;;
1099-
"sl" | "sl-"* ) url="sl-si_${c10}.iso" ;;
1100-
"sr" | "sr-"* ) url="sr-latn-rs_${c10}.iso" ;;
1101-
"sv" | "sv-"* ) url="sv-se_${c10}.iso" ;;
1102-
"th" | "th-"* ) url="th-th_${c10}.iso" ;;
1103-
"tr" | "tr-"* ) url="tr-tr_${c10}.iso" ;;
1104-
"uk" | "uk-"* ) url="uk-ua_${c10}.iso" ;;
1105-
"zh-hk" | "zh-tw" ) url="zh-tw_${c10}.iso" ;;
1106-
"zh" | "zh-"* ) url="zh-cn_${c10}.iso" ;;
1107-
esac
1108-
;;
1109-
"win10x64-enterprise" | "win10x64-enterprise-eval" )
1110-
case "${culture,,}" in
1111-
"ar" | "ar-"* ) url="ar-sa_${b10}_92a8794f.iso" ;;
1112-
"bg" | "bg-"* ) url="bg-bg_${b10}_5c7ee697.iso" ;;
1113-
"cs" | "cs-"* ) url="cs-cz_${b10}_c8ad70aa.iso" ;;
1114-
"da" | "da-"* ) url="da-dk_${b10}_5a51835f.iso" ;;
1115-
"de" | "de-"* ) url="de-de_${b10}_e24c9809.iso" ;;
1116-
"el" | "el-"* ) url="el-gr_${b10}_a340838b.iso" ;;
1117-
"gb" | "en-gb" ) url="en-gb_${b10}_e758d63e.iso" ;;
1118-
"en" | "en-"* )
1119-
size=6976530432
1120-
sum="290cdbfe5f9b9a76dad12981e5f27eba353c535ffd8c83fdc4691a925f93f487"
1121-
url="en-us_${b10}_633dcd07.iso" ;;
1122-
"mx" | "es-mx" ) url="es-mx_${b10}_0c82aba5.iso" ;;
1123-
"es" | "es-"* ) url="es-es_${b10}_d12d0e1a.iso" ;;
1124-
"et" | "et-"* ) url="et-ee_${b10}_021c20ff.iso" ;;
1125-
"fi" | "fi-"* ) url="fi-fi_${b10}_8fcefb87.iso" ;;
1126-
"ca" | "fr-ca" ) url="fr-ca_${b10}_b0588c68.iso" ;;
1127-
"fr" | "fr-"* ) url="fr-fr_${b10}_8766236b.iso" ;;
1128-
"he" | "he-"* ) url="he-il_${b10}_e34ccebf.iso" ;;
1129-
"hr" | "hr-"* ) url="hr-hr_${b10}_ea8c7c60.iso" ;;
1130-
"hu" | "hu-"* ) url="hu-hu_${b10}_8381df72.iso" ;;
1131-
"it" | "it-"* ) url="it-it_${b10}_1e265790.iso" ;;
1132-
"ja" | "ja-"* ) url="ja-jp_${b10}_6334dde3.iso" ;;
1133-
"ko" | "ko-"* ) url="ko-kr_${b10}_092c4fe2.iso" ;;
1134-
"lt" | "lt-"* ) url="lt-lt_${b10}_5425bdce.iso" ;;
1135-
"lv" | "lv-"* ) url="lv-lv_${b10}_5426a93f.iso" ;;
1136-
"nb" | "nb-"* ) url="nb-no_${b10}_67cd70cf.iso" ;;
1137-
"nl" | "nl-"* ) url="nl-nl_${b10}_43418e31.iso" ;;
1138-
"pl" | "pl-"* ) url="pl-pl_${b10}_7d9fc23a.iso" ;;
1139-
"br" | "pt-br" ) url="pt-br_${b10}_159a147c.iso" ;;
1140-
"pt" | "pt-"* ) url="pt-pt_${b10}_003df1d7.iso" ;;
1141-
"ro" | "ro-"* ) url="ro-ro_${b10}_068fb76e.iso" ;;
1142-
"ru" | "ru-"* ) url="ru-ru_${b10}_71cdb226.iso" ;;
1143-
"sk" | "sk-"* ) url="sk-sk_${b10}_22793411.iso" ;;
1144-
"sl" | "sl-"* ) url="sl-si_${b10}_91ae3317.iso" ;;
1145-
"sr" | "sr-"* ) url="sr-latn-rs_${b10}_4f8045aa.iso" ;;
1146-
"sv" | "sv-"* ) url="sv-se_${b10}_fe117cac.iso" ;;
1147-
"th" | "th-"* ) url="th-th_${b10}_15986f75.iso" ;;
1148-
"tr" | "tr-"* ) url="tr-tr_${b10}_71319f58.iso" ;;
1149-
"uk" | "uk-"* ) url="uk-ua_${b10}_0555f2a3.iso" ;;
1150-
"zh-hk" | "zh-tw" ) url="zh-tw_${b10}_ebffe3cd.iso" ;;
1151-
"zh" | "zh-"* ) url="zh-cn_${b10}_2dce9717.iso" ;;
1152-
esac
1153-
;;
1154969
"win10x64-ltsc" | "win10x64-enterprise-ltsc-eval" )
1155970
case "${culture,,}" in
1156971
"ar" | "ar-"* ) url="ar-sa_windows_10_enterprise_ltsc_2021_x64_dvd_60bc2a7a.iso" ;;
@@ -1271,31 +1086,6 @@ getLink3() {
12711086
"zh" | "zh-"* ) url="zh-cn_windows_server_2025_preview_x64_dvd_a12bb0bf.iso" ;;
12721087
esac
12731088
;;
1274-
"win2022" | "win2022-eval" )
1275-
case "${culture,,}" in
1276-
"cs" | "cs-"* ) url="cs-cz_${s22}.iso" ;;
1277-
"de" | "de-"* ) url="de-de_${s22}.iso" ;;
1278-
"en" | "en-"* )
1279-
size=5966127104
1280-
sum="0b70ea0e3969ad63dfe7e819d76d37ea37582e9f29e0f8d70b38e6b978406ee9"
1281-
url="en-us_${s22}.iso" ;;
1282-
"es" | "es-"* ) url="es-es_${s22}.iso" ;;
1283-
"fr" | "fr-"* ) url="fr-fr_${s22}.iso" ;;
1284-
"hu" | "hu-"* ) url="hu-hu_${s22}.iso" ;;
1285-
"it" | "it-"* ) url="it-it_${s22}.iso" ;;
1286-
"ja" | "ja-"* ) url="ja-jp_${s22}.iso" ;;
1287-
"ko" | "ko-"* ) url="ko-kr_${s22}.iso" ;;
1288-
"nl" | "nl-"* ) url="nl-nl_${s22}.iso" ;;
1289-
"pl" | "pl-"* ) url="pl-pl_${s22}.iso" ;;
1290-
"br" | "pt-br" ) url="pt-br_${s22}.iso" ;;
1291-
"pt" | "pt-"* ) url="pt-pt_${s22}.iso" ;;
1292-
"ru" | "ru-"* ) url="ru-ru_${s22}.iso" ;;
1293-
"sv" | "sv-"* ) url="sv-se_${s22}.iso" ;;
1294-
"tr" | "tr-"* ) url="tr-tr_${s22}.iso" ;;
1295-
"zh-hk" | "zh-tw" ) url="zh-tw_${s22}.iso" ;;
1296-
"zh" | "zh-"* ) url="zh-cn_${s22}.iso" ;;
1297-
esac
1298-
;;
12991089
"win2019" | "win2019-eval" )
13001090
case "${culture,,}" in
13011091
"cs" | "cs-"* ) url="cs-cz_windows_server_2019_x64_dvd_3781c31c.iso" ;;
@@ -1895,13 +1685,21 @@ prepareInstall() {
18951685
local target
18961686
[[ "${arch,,}" == "x86" ]] && target="$dir/I386" || target="$dir/AMD64"
18971687

1688+
if [ ! -f "$drivers/viostor/$driver/$arch/viostor.sys" ]; then
1689+
error "Failed to locate required storage drivers!" && return 1
1690+
fi
1691+
18981692
cp "$drivers/viostor/$driver/$arch/viostor.sys" "$target"
18991693

19001694
mkdir -p "$dir/\$OEM\$/\$1/Drivers/viostor"
19011695
cp "$drivers/viostor/$driver/$arch/viostor.cat" "$dir/\$OEM\$/\$1/Drivers/viostor"
19021696
cp "$drivers/viostor/$driver/$arch/viostor.inf" "$dir/\$OEM\$/\$1/Drivers/viostor"
19031697
cp "$drivers/viostor/$driver/$arch/viostor.sys" "$dir/\$OEM\$/\$1/Drivers/viostor"
19041698

1699+
if [ ! -f "$drivers/NetKVM/$driver/$arch/netkvm.sys" ]; then
1700+
error "Failed to locate required network drivers!" && return 1
1701+
fi
1702+
19051703
mkdir -p "$dir/\$OEM\$/\$1/Drivers/NetKVM"
19061704
cp "$drivers/NetKVM/$driver/$arch/netkvm.cat" "$dir/\$OEM\$/\$1/Drivers/NetKVM"
19071705
cp "$drivers/NetKVM/$driver/$arch/netkvm.inf" "$dir/\$OEM\$/\$1/Drivers/NetKVM"
@@ -1919,8 +1717,11 @@ prepareInstall() {
19191717
sed -i '/^\[HardwareIdsDatabase\]/s/$/\nPCI\\VEN_1AF4\&DEV_1001\&SUBSYS_00021AF4=\"viostor\"/' "$target/TXTSETUP.SIF"
19201718
sed -i '/^\[HardwareIdsDatabase\]/s/$/\nPCI\\VEN_1AF4\&DEV_1001\&SUBSYS_00000000=\"viostor\"/' "$target/TXTSETUP.SIF"
19211719

1922-
mkdir -p "$dir/\$OEM\$/\$1/Drivers/sata"
1720+
if [ ! -d "$drivers/sata/xp/$arch" ]; then
1721+
error "Failed to locate required SATA drivers!" && return 1
1722+
fi
19231723

1724+
mkdir -p "$dir/\$OEM\$/\$1/Drivers/sata"
19241725
cp -a "$drivers/sata/xp/$arch/." "$dir/\$OEM\$/\$1/Drivers/sata"
19251726
cp -a "$drivers/sata/xp/$arch/." "$target"
19261727

0 commit comments

Comments
 (0)