From 196be4186df7423d619cd88f145689e06da5f6bb Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Fri, 28 Oct 2022 23:16:02 -0400 Subject: [PATCH] Add DEBUG Sleep() lines to OSInstall.ZC InstallDrive to attempt kludge workaround for errors noticed during bare metal testing on 250GB hard drive. This bug may scale linearly with hard drive size, and these debug sleep statements may not be long enough of a pause in general. A better approach to synchronizing the install process' repartition-format-copy cycle is likely needed. --- src/Misc/OSInstall.ZC | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Misc/OSInstall.ZC b/src/Misc/OSInstall.ZC index 133f5b0a..2367df9f 100755 --- a/src/Misc/OSInstall.ZC +++ b/src/Misc/OSInstall.ZC @@ -228,7 +228,15 @@ U0 InstallDrive(U8 drv_let) while (!DriveCheck(blkdev.let_to_drive[drv_let - 'A'], FALSE)) Sleep(1); + Sleep(1000); + '.'; + Sleep(1000); + '.'; + Sleep(1000); + '.'; + Sleep(1000); + '.'; ExePrint("CopyTree(\"::/\",\"%C:/\");", drv_let);