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,11 +152,14 @@ 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
"$$RED$$Install Master Boot Loader?$$FG$$"; if (!sys_is_uefi_booted)
if (YorN)
{ {
'\n'; "$$RED$$Install Master Boot Loader?$$FG$$";
BootMHDIns(drv_let); if (YorN)
{
'\n';
BootMHDIns(drv_let);
}
} }
WinVert(task->win_top, Fs->win_bottom); WinVert(task->win_top, Fs->win_bottom);
@ -256,7 +259,10 @@ 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);
BootMHDIns('C'); if (!sys_is_uefi_booted)
{
BootMHDIns('C');
}
} }
WinVert(task->win_top, Fs->win_bottom); WinVert(task->win_top, Fs->win_bottom);
@ -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
"$$RED$$Install Master Boot loader?$$FG$$"; if (!sys_is_uefi_booted)
if (YorN)
{ {
'\n'; "$$RED$$Install Master Boot loader?$$FG$$";
BootMHDIns(drv_let); if (YorN)
{
'\n';
BootMHDIns(drv_let);
}
} }
WinVert(task->win_top, Fs->win_bottom); WinVert(task->win_top, Fs->win_bottom);
Kill(task); Kill(task);
} }