refactor(rootfs): change "initrd" to "rootfs"

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-24 00:51:00 +00:00
parent 1286c4cd90
commit 527e1708ce
32 changed files with 22 additions and 22 deletions

View File

@ -31,10 +31,10 @@ void SearchForInitrd()
if (!initrdAddress)
continue;
if (strcmp(bInfo.Modules[i].CommandLine, "initrd") != 0)
if (strcmp(bInfo.Modules[i].CommandLine, "rootfs") != 0)
continue;
KPrint("initrd found at %#lx", initrdAddress);
KPrint("rootfs found at %#lx", initrdAddress);
Memory::Virtual vmm;
if (!vmm.Check((void *)initrdAddress))

View File

@ -843,9 +843,9 @@ bool TestAndInitializeUSTAR(uintptr_t Address, size_t Size)
ustar->DeviceID = fs->EarlyReserveDevice();
ustar->ReadArchive(Address, Size);
Inode *initrd = nullptr;
ustar->Lookup(nullptr, "/", &initrd);
assert(initrd != nullptr);
Inode *rootfs = nullptr;
ustar->Lookup(nullptr, "/", &rootfs);
assert(rootfs != nullptr);
FileSystemInfo *fsi = new FileSystemInfo;
fsi->Name = "ustar";
@ -861,8 +861,8 @@ bool TestAndInitializeUSTAR(uintptr_t Address, size_t Size)
fsi->Ops.ReadLink = __ustar_ReadLink;
fsi->Ops.Stat = __ustar_Stat;
fsi->PrivateData = ustar;
fs->LateRegisterFileSystem(ustar->DeviceID, fsi, initrd);
fs->LateRegisterFileSystem(ustar->DeviceID, fsi, rootfs);
fs->AddRoot(initrd);
fs->AddRoot(rootfs);
return true;
}