:: commit abc5119a01b1840d5ba4d9a39bf0c03a287ece00

mintsuki <mintsuki@protonmail.com> — 2023-02-06 23:23

parents: a72d2fc59d

config: No longer allow continuing boot on checksum mismatches

diff --git a/common/lib/config.c b/common/lib/config.c
index 4a275f7c..bb8a68fe 100644
--- a/common/lib/config.c
+++ b/common/lib/config.c
@@ -155,14 +155,7 @@ int init_config(size_t config_size) {
         }
 
         if (memcmp(hash_buf, out_buf, BLAKE2B_OUT_BYTES) != 0) {
-            print("!!! CHECKSUM MISMATCH FOR CONFIG FILE !!!\n");
-            print("If you do not know what this means, ANSWER WITH 'N' NOW!\n");
-            print("Proceed with boot anyways? [y/N]: ");
-            if (getchar() != 'y') {
-                print("\n");
-                panic(true, "Checksum mismatch for config file");
-            }
-            print("\n");
+            panic(true, "!!! CHECKSUM MISMATCH FOR CONFIG FILE !!!");
         }
     }
 
tab: 248 wrap: offon