mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 02:19:15 +00:00
refactor(rootfs): reorganize file structure and remove unnecessary .gitkeep files
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -130,7 +130,7 @@ namespace KernelConsole
|
||||
|
||||
bool SetTheme(std::string Theme)
|
||||
{
|
||||
FileNode *rn = fs->GetByPath("/etc/term", thisProcess->Info.RootNode);
|
||||
FileNode *rn = fs->GetByPath("/sys/cfg/term", thisProcess->Info.RootNode);
|
||||
if (rn == nullptr)
|
||||
return false;
|
||||
|
||||
@ -274,7 +274,7 @@ namespace KernelConsole
|
||||
|
||||
void LateInit()
|
||||
{
|
||||
FileNode *rn = fs->GetByPath("/etc/term", thisProcess->Info.RootNode);
|
||||
FileNode *rn = fs->GetByPath("/sys/cfg/term", thisProcess->Info.RootNode);
|
||||
if (rn == nullptr)
|
||||
return;
|
||||
|
||||
|
@ -115,10 +115,10 @@ nsa void DiagnosticDataCollection()
|
||||
S_IROTH |
|
||||
S_IFDIR;
|
||||
|
||||
FileNode *panicDir = fs->ForceCreate(nullptr, "/var/panic", mode);
|
||||
FileNode *panicDir = fs->ForceCreate(nullptr, "/sys/log/panic", mode);
|
||||
if (!panicDir)
|
||||
{
|
||||
ExPrint("\x1b[0;30;41mFailed to create /var/panic\x1b[0m\n");
|
||||
ExPrint("\x1b[0;30;41mFailed to create /sys/log/panic\x1b[0m\n");
|
||||
Display->UpdateBuffer();
|
||||
return;
|
||||
}
|
||||
@ -145,6 +145,6 @@ nsa void DiagnosticDataCollection()
|
||||
if (!WriteDiagDataToNode(dumpFile))
|
||||
return;
|
||||
|
||||
ExPrint("You can find the diagnostic file in /var/panic/%s\n", filename);
|
||||
ExPrint("You can find the diagnostic file in /sys/log/panic/%s\n", filename);
|
||||
Display->UpdateBuffer();
|
||||
}
|
||||
|
@ -41,8 +41,8 @@ __aligned(16) BootInfo bInfo{};
|
||||
struct KernelConfig Config = {
|
||||
.AllocatorType = Memory::liballoc11,
|
||||
.SchedulerType = Multi,
|
||||
.DriverDirectory = {'/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 'd', 'r', 'i', 'v', 'e', 'r', 's', '\0'},
|
||||
.InitPath = {'/', 'b', 'i', 'n', '/', 'i', 'n', 'i', 't', '\0'},
|
||||
.DriverDirectory = {'/', 's', 'y', 's', '/', 'd', 'r', 'v', '\0'},
|
||||
.InitPath = {'/', 's', 'y', 's', '/', 'b', 'i', 'n', '/', 'i', 'n', 'i', 't', '\0'},
|
||||
.UseLinuxSyscalls = false,
|
||||
.InterruptsOnCrash = true,
|
||||
.Cores = 0,
|
||||
|
@ -2133,7 +2133,7 @@ static int linux_uname(SysFrm *, struct utsname *buf)
|
||||
#endif
|
||||
};
|
||||
|
||||
FileNode *rn = fs->GetByPath("/etc/cross/linux", pcb->Info.RootNode);
|
||||
FileNode *rn = fs->GetByPath("/sys/cfg/cross/linux", pcb->Info.RootNode);
|
||||
if (rn)
|
||||
{
|
||||
struct kstat st
|
||||
@ -2177,7 +2177,7 @@ static int linux_uname(SysFrm *, struct utsname *buf)
|
||||
delete[] sh;
|
||||
}
|
||||
else
|
||||
warn("Couldn't open /etc/cross/linux");
|
||||
warn("Couldn't open /sys/cfg/cross/linux");
|
||||
|
||||
memcpy(pBuf, &uname, sizeof(struct utsname));
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user