mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-01-14 08:36:31 +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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue