config: No longer allow continuing boot on checksum mismatches

This commit is contained in:
mintsuki 2023-02-07 00:23:10 +01:00
parent a72d2fc59d
commit abc5119a01
1 changed files with 1 additions and 8 deletions

View File

@ -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 !!!");
}
}