mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 23:36:32 +00:00
Make OSInstall.ZC skip MBR install if UEFI-booted.
This commit is contained in:
parent
dac6f9efe1
commit
361833f42a
1 changed files with 18 additions and 10 deletions
|
@ -152,11 +152,14 @@ U0 OSUpgrade()
|
|||
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
|
||||
|
||||
"$$RED$$Install Master Boot Loader?$$FG$$";
|
||||
if (YorN)
|
||||
if (!sys_is_uefi_booted)
|
||||
{
|
||||
'\n';
|
||||
BootMHDIns(drv_let);
|
||||
"$$RED$$Install Master Boot Loader?$$FG$$";
|
||||
if (YorN)
|
||||
{
|
||||
'\n';
|
||||
BootMHDIns(drv_let);
|
||||
}
|
||||
}
|
||||
|
||||
WinVert(task->win_top, Fs->win_bottom);
|
||||
|
@ -256,7 +259,10 @@ U0 VMInstallWiz()
|
|||
{
|
||||
VMInstallDrive(task, 'C', 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);
|
||||
|
@ -339,13 +345,15 @@ U0 RegularInstallWiz()
|
|||
VideoRep;
|
||||
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
|
||||
"$$RED$$Install Master Boot loader?$$FG$$";
|
||||
if (YorN)
|
||||
if (!sys_is_uefi_booted)
|
||||
{
|
||||
'\n';
|
||||
BootMHDIns(drv_let);
|
||||
"$$RED$$Install Master Boot loader?$$FG$$";
|
||||
if (YorN)
|
||||
{
|
||||
'\n';
|
||||
BootMHDIns(drv_let);
|
||||
}
|
||||
}
|
||||
|
||||
WinVert(task->win_top, Fs->win_bottom);
|
||||
Kill(task);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue