mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 02:19:15 +00:00
refactor(rootfs): change "initrd" to "rootfs"
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -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))
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user