Make OSInstall.ZC skip MBR install if UEFI-booted.

This commit is contained in:
TomAwezome 2022-10-11 18:23:38 -04:00
parent dac6f9efe1
commit 361833f42a

View file

@ -152,12 +152,15 @@ U0 OSUpgrade()
res_num = I64Get("Enter desired list num ($$PURPLE$$<ENTER>$$FG$$ for max res): ",, 1); res_num = I64Get("Enter desired list num ($$PURPLE$$<ENTER>$$FG$$ for max res): ",, 1);
XTalkWait(task, "%d\n\n\n", res_num); //skip through Disk Cache, Options XTalkWait(task, "%d\n\n\n", res_num); //skip through Disk Cache, Options
if (!sys_is_uefi_booted)
{
"$$RED$$Install Master Boot Loader?$$FG$$"; "$$RED$$Install Master Boot Loader?$$FG$$";
if (YorN) if (YorN)
{ {
'\n'; '\n';
BootMHDIns(drv_let); BootMHDIns(drv_let);
} }
}
WinVert(task->win_top, Fs->win_bottom); WinVert(task->win_top, Fs->win_bottom);
Kill(task); Kill(task);
@ -256,8 +259,11 @@ U0 VMInstallWiz()
{ {
VMInstallDrive(task, 'C', ata_port, atapi_port); VMInstallDrive(task, 'C', ata_port, atapi_port);
VMInstallDrive(task, 'D', ata_port, atapi_port); VMInstallDrive(task, 'D', ata_port, atapi_port);
if (!sys_is_uefi_booted)
{
BootMHDIns('C'); BootMHDIns('C');
} }
}
WinVert(task->win_top, Fs->win_bottom); WinVert(task->win_top, Fs->win_bottom);
Kill(task); Kill(task);
@ -339,13 +345,15 @@ U0 RegularInstallWiz()
VideoRep; VideoRep;
res_num = I64Get("Enter desired list num ($$PURPLE$$<ENTER>$$FG$$ for max res): ",, 1); res_num = I64Get("Enter desired list num ($$PURPLE$$<ENTER>$$FG$$ for max res): ",, 1);
XTalkWait(task, "%d\n\n\n", res_num); //skip through Disk Cache, Options XTalkWait(task, "%d\n\n\n", res_num); //skip through Disk Cache, Options
if (!sys_is_uefi_booted)
{
"$$RED$$Install Master Boot loader?$$FG$$"; "$$RED$$Install Master Boot loader?$$FG$$";
if (YorN) if (YorN)
{ {
'\n'; '\n';
BootMHDIns(drv_let); BootMHDIns(drv_let);
} }
}
WinVert(task->win_top, Fs->win_bottom); WinVert(task->win_top, Fs->win_bottom);
Kill(task); Kill(task);
} }