mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
feat: Support older Windows versions
This commit is contained in:
parent
23c9529440
commit
d3d37cda63
1 changed files with 9 additions and 0 deletions
|
|
@ -106,6 +106,10 @@ finishInstall() {
|
|||
rm -f "$STORAGE/windows.boot"
|
||||
cp /run/version "$STORAGE/windows.ver"
|
||||
|
||||
if [[ "${BOOT_MODE,,}" == "windows_legacy" ]]; then
|
||||
touch "$STORAGE/windows.bios"
|
||||
fi
|
||||
|
||||
rm -rf "$TMP"
|
||||
return 0
|
||||
}
|
||||
|
|
@ -434,6 +438,11 @@ buildImage() {
|
|||
######################################
|
||||
|
||||
if ! startInstall; then
|
||||
|
||||
if [ -f "$STORAGE/windows.bios" ]; then
|
||||
BOOT_MODE="windows_legacy"
|
||||
fi
|
||||
|
||||
rm -rf "$TMP"
|
||||
return 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue