:: commit 698e386cc526d16ee8de5d017661fbaee84bcf8e

mintsuki <mintsuki@protonmail.com> — 2021-03-21 06:58

parents: 48e6d8f90e

misc: Add warnings about copying limine.sys over

diff --git a/limine-install/limine-install.c b/limine-install/limine-install.c
index d5b48998..15832164 100644
--- a/limine-install/limine-install.c
+++ b/limine-install/limine-install.c
@@ -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;
diff --git a/stage23/entry.s2.c b/stage23/entry.s2.c
index a1724444..60ee98b4 100644
--- a/stage23/entry.s2.c
+++ b/stage23/entry.s2.c
@@ -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;
     }
 
tab: 248 wrap: offon