:: commit e80e20f209252eba86f540d4b7e8fcebb6a438f3

mintsuki <mintsuki@protonmail.com> — 2021-04-03 13:27

parents: 12aceadc76

Revert "limine-install: Offer the option to force installation on an unrecognised MBR device instead of just failing"

This reverts commit fc61ae76a0ca85c46d433fdc78c8cffa9c5b4f4c.
diff --git a/limine-install/limine-install.c b/limine-install/limine-install.c
index 71b82497..022dc7f9 100644
--- a/limine-install/limine-install.c
+++ b/limine-install/limine-install.c
@@ -373,18 +373,9 @@ int main(int argc, char *argv[]) {
     }
 
     if (gpt == 0 && mbr == 0) {
-        fprintf(stderr, "WARNING: Could not determine if the device has a valid partition table.\n");
-        fprintf(stderr, "         Please ensure the device has a valid MBR or GPT.\n\n");
-        fprintf(stderr, "Forcing installation as MBR on this device may result in LOSS OF DATA.\n\n");
-        fprintf(stderr, "To force installation as MBR on device '%s', type 'yes, proceed': ", argv[1]);
-        char buf[16];
-        fgets(buf, sizeof(buf), stdin);
-        size_t len = strlen(buf);
-        if (buf[len-1] == '\n')
-            buf[len-1] = 0;
-        if (strcmp(buf, "yes, proceed") != 0)
-            goto cleanup;
-        mbr = 1;
+        fprintf(stderr, "ERROR: Could not determine if the device has a valid partition table.\n");
+        fprintf(stderr, "       Please ensure the device has a valid MBR or GPT.\n");
+        goto cleanup;
     }
 
     size_t   stage2_size   = bootloader_file_size - 512;
tab: 248 wrap: offon