chore(cpio): moved initramfs binary files to /bin/*

This commit is contained in:
Karina
2026-01-30 17:25:01 +04:00
parent ae7e1a91d0
commit 52d0bfeaae
4 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -58,9 +58,9 @@ i32 process_spawn(const char* path, const char* name) {
}
void init_task_entry() {
i32 pid = process_spawn("/init", "init");
i32 pid = process_spawn("/bin/init", "init");
if (pid < 0) {
panic("FATAL: Failed to spawn /init");
panic("FATAL: Failed to spawn /bin/init");
}
while (1) { __asm__("sti; hlt"); }
+1
View File
@@ -3,6 +3,7 @@
#include <syscalls/proc.h>
#include <core/scheduler.h>
#include <core/panic.h>
#include <drivers/console.h>
#include <core/loader.h>
+1 -1
View File
@@ -6,7 +6,7 @@
#include <malloc.h>
int main() {
wait(spawn("termosh")); // TODO: read .cfg and spawn what stated there
wait(spawn("/bin/termosh")); // TODO: read .cfg and spawn what stated there
printf("\nbaiii");
return 0;
}
+1 -1
View File
@@ -54,7 +54,7 @@ function(add_termos_executable NAME SOURCES)
)
set(ELF2HOT_DIR "${CMAKE_SOURCE_DIR}/tools/elf2hot")
set(FINAL_HOT_PATH "${CMAKE_SOURCE_DIR}/initramfs/${NAME}")
set(FINAL_HOT_PATH "${CMAKE_SOURCE_DIR}/initramfs/bin/${NAME}")
add_custom_command(TARGET ${NAME} POST_BUILD
COMMAND cargo run --release --quiet -- $<TARGET_FILE:${NAME}> ${FINAL_HOT_PATH}