⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

populate_initramfs

Function populate_initramfs 

Source
pub fn populate_initramfs() -> Result<(), KernelError>
Expand description

Populate the RamFS with embedded init and shell binaries.

Creates /sbin/init and /bin/vsh in the VFS so that load_init_process() and load_shell() can find real ELF executables instead of falling back to stub processes.

Must be called after VFS is initialized (Stage 4) but before create_init_process() (Stage 6).