misc: Add warnings about copying limine.sys over

This commit is contained in:
mintsuki 2021-03-21 07:58:21 +01:00
parent 48e6d8f90e
commit 698e386cc5
2 changed files with 7 additions and 0 deletions

View File

@ -492,6 +492,10 @@ int main(int argc, char *argv[]) {
if (!device_flush_cache())
goto cleanup;
fprintf(stderr, "WARNING: Remember to copy the limine.sys file in either\n"
" the root or /boot directories of one of the partitions\n"
" on the device, or boot will fail!\n");
fprintf(stderr, "Limine installed successfully!\n");
ok = 0;

View File

@ -38,6 +38,9 @@ static bool stage3_init(struct volume *part) {
if (fopen(&stage3, part, "/limine.sys")
&& fopen(&stage3, part, "/boot/limine.sys")) {
print("Stage 3 file not found!\n"
"Have you copied limine.sys to the root or /boot directories of\n"
"one of the partitions on the boot device?\n");
return false;
}