Complete hardware fingerprint elimination
Removes all remaining hardware fingerprint validation logic to fix system startup errors and improve cross-hardware compatibility. Key changes: - Remove hardware compatibility checks from database-file-encryption.ts - Remove backup restore hardware validation from database.ts - Remove database initialization hardware checks from db/index.ts - Delete hardware-fingerprint.ts module entirely - Update migration files to use fixed identifiers Fixes "wmic is not recognized" and "Hardware fingerprint mismatch" errors that were preventing system startup and database operations.
This commit is contained in:
@@ -629,14 +629,7 @@ app.post("/database/restore", async (req, res) => {
|
||||
return res.status(400).json({ error: "Invalid encrypted backup file" });
|
||||
}
|
||||
|
||||
// Check hardware compatibility
|
||||
if (!DatabaseFileEncryption.validateHardwareCompatibility(backupPath)) {
|
||||
return res.status(400).json({
|
||||
error: "Hardware fingerprint mismatch",
|
||||
message:
|
||||
"This backup was created on different hardware and cannot be restored",
|
||||
});
|
||||
}
|
||||
// Hardware compatibility check removed - no longer required
|
||||
|
||||
const restoredPath = DatabaseFileEncryption.restoreFromEncryptedBackup(
|
||||
backupPath,
|
||||
|
||||
Reference in New Issue
Block a user