Function mount_initramfs

Source
fn mount_initramfs(
    manager: &mut VfsManager,
    initramfs: MemoryArea,
) -> Result<(), FileSystemError>
Expand description

Mount the initramfs as the root filesystem

This function creates a CPIO filesystem from the initramfs memory area and mounts it at the root (“/”) mount point.

§Arguments

  • manager - A mutable reference to the VFS manager.
  • initramfs - The memory area of the initramfs.

§Returns

Result<(), FileSystemError>: Ok if mounting was successful, Err otherwise.