diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-22 22:39:01 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-22 22:39:01 +0200 |
| commit | bb1d9fa4b7b2c680ed3c0ca16c060dd991bda16f (patch) | |
| tree | 7cd86b7f835efe3fc5fd4143423462a117d9b26c /dev/boot/modules/SysChk/SysChk.cc | |
| parent | d67240d20d1d4bbe33134e640fd632cfd5fc6795 (diff) | |
dev, boot: fixed nasty bugs inside bootloader.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/modules/SysChk/SysChk.cc')
| -rw-r--r-- | dev/boot/modules/SysChk/SysChk.cc | 6 |
1 files changed, 1 insertions, 5 deletions
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<BootDeviceATA> partition_factory; if (partition_factory.IsPartitionValid()) - return kEfiOk; + return kEfiFail; Boot::BDiskFormatFactory<BootDeviceATA>::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; |
