Kernel/Userspace: Add basic init process

This process parses /etc/passwd and promps login screen.
When an username is entered, it will launch that users shell
This commit is contained in:
Bananymous
2023-06-11 21:01:02 +03:00
parent cce2f3e19a
commit 78536f9678
8 changed files with 173 additions and 15 deletions

View File

@@ -300,8 +300,6 @@ namespace Kernel
delete range;
m_mapped_ranges.clear();
m_open_files.clear();
load_elf_to_memory(*elf);
m_userspace_info.entry = elf->file_header_native().e_entry;

View File

@@ -180,7 +180,7 @@ static void init2(void* tty1)
((TTY*)tty1)->initialize_device();
MUST(Process::create_userspace({ 0, 0, 0, 0 }, "/usr/bin/Shell"sv));
MUST(Process::create_userspace({ 0, 0, 0, 0 }, "/usr/bin/init"sv));
return;
Process::create_kernel(