summaryrefslogtreecommitdiffhomepage
path: root/Private/NewBoot/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-30 20:03:31 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-30 20:03:31 +0200
commit32efe47d7ba51b6369baa3619b0a91591beeb1df (patch)
tree38bf1c5c2feaaa2365636814bb538b15ff72ed42 /Private/NewBoot/Source
parent86be1e8e08114f40589e5ca74bd52fed04de2cc2 (diff)
Kernel: Fix NewFS catalog creation.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/Source')
-rw-r--r--Private/NewBoot/Source/HEL/AMD64/BootMain.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx b/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx
index 1462115a..0cbeadfa 100644
--- a/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx
+++ b/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx
@@ -168,16 +168,7 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle,
if (!diskFormatter.IsPartitionValid()) {
BDiskFormatFactory<BootDeviceATA>::BFileDescriptor rootDesc{0};
- CopyMem(rootDesc.fFileName, "/", StrLen("/"));
- CopyMem(rootDesc.fForkName, kNewFSResourceFork, StrLen(kNewFSResourceFork));
-
- rootDesc.fBlobSz = BootDeviceATA::kSectorSize;
- rootDesc.fBlob = new Char[rootDesc.fBlobSz];
-
- SetMem(rootDesc.fBlob, 0, rootDesc.fBlobSz);
- CopyMem(rootDesc.fBlob, kMachineModel " startup disk.",
- strlen(kMachineModel " startup disk."));
-
+ CopyMem(rootDesc.fFileName, kNewFSRoot, StrLen(kNewFSRoot));
rootDesc.fKind = kNewFSCatalogKindDir;
diskFormatter.Format(kMachineModel, &rootDesc, 1);