From 8a2cab86eb8723b2f8b4f85c5d09d764003087a3 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Sat, 10 Aug 2024 10:41:10 +0200 Subject: [IMP] stop when disk isn't partitioned. Signed-off-by: Amlal EL Mahrouss --- Boot/Sources/HEL/AMD64/BootMain.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'Boot') diff --git a/Boot/Sources/HEL/AMD64/BootMain.cxx b/Boot/Sources/HEL/AMD64/BootMain.cxx index 53587e40..21db7823 100644 --- a/Boot/Sources/HEL/AMD64/BootMain.cxx +++ b/Boot/Sources/HEL/AMD64/BootMain.cxx @@ -201,6 +201,7 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, if (!checkPart.IsPartitionValid()) { writer.Write("newosldr: Warning, partition isn't valid! Need to repartition it.\r"); + EFI::Stop(); } // ---------------------------------------------------- // -- cgit v1.2.3