From bb1d9fa4b7b2c680ed3c0ca16c060dd991bda16f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 22 Apr 2025 22:39:01 +0200 Subject: dev, boot: fixed nasty bugs inside bootloader. Signed-off-by: Amlal El Mahrouss --- dev/boot/modules/SysChk/SysChk.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'dev/boot/modules/SysChk/SysChk.cc') diff --git a/dev/boot/modules/SysChk/SysChk.cc b/dev/boot/modules/SysChk/SysChk.cc index 9bdeb38d..16684666 100644 --- a/dev/boot/modules/SysChk/SysChk.cc +++ b/dev/boot/modules/SysChk/SysChk.cc @@ -33,12 +33,10 @@ EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover) #if defined(__ATA_PIO__) fw_init_efi((EfiSystemTable*)handover->f_FirmwareCustomTables[1]); - Boot::BootTextWriter writer; - Boot::BDiskFormatFactory partition_factory; if (partition_factory.IsPartitionValid()) - return kEfiOk; + return kEfiFail; Boot::BDiskFormatFactory::BFileDescriptor desc{}; @@ -48,8 +46,6 @@ EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover) partition_factory.Format(kMachineModel, &desc, 1); - writer.Write(L"BootZ: Partition formatted.\r"); - if (partition_factory.IsPartitionValid()) return kEfiOk; -- cgit v1.2.3