Skip to content

Commit

Permalink
fix: Windows 10 LTSC detection (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 27, 2024
1 parent 6b31a9d commit 46de9e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ docker run -it --rm -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti

Select from the values below:

| **Value** | **Description** | **Server** | **Speed** | **Size** |
| **Value** | **Description** | **Server** | **Transfer** | **Size** |
|---|---|---|---|---|
| ```win11``` | Windows 11 Pro | Microsoft | Fast | 6.4 GB |
| ```win10``` | Windows 10 Pro | Microsoft | Fast | 5.8 GB |
Expand Down Expand Up @@ -123,7 +123,9 @@ docker run -it --rm -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti

* ### How do I perform a manual installation?

It's best to use the automatic installation, as it optimizes various settings for use with this container. However, if you insist on performing the installation manually, start a clean container with the following environment variable:
It's best to use the automatic installation, as it optimizes various settings for use with this container.

However, if you insist on performing the installation manually, start a clean container with the following environment variable:

```yaml
environment:
Expand Down
4 changes: 2 additions & 2 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ startInstall() {
BASE="$VERSION.iso"

if ! skipInstall && [ ! -f "$STORAGE/$BASE" ]; then

desc=$(printVersion "$VERSION")
[ -z "$desc" ] && desc="Windows"
msg="$desc is being downloaded, please wait..."
Expand Down Expand Up @@ -353,7 +353,7 @@ getVersion() {
[[ "${name,,}" == *"server 2016"* ]] && detected="win2016-eval"

if [[ "${name,,}" == *"windows 10"* ]]; then
if [[ "${name,,}" == *"enterprise ltsc"* ]]; then
if [[ "${name,,}" == *"ltsc"* ]]; then
detected="win10x64-ltsc"
else
detected="win10x64"
Expand Down

0 comments on commit 46de9e8

Please sign in to comment.