Kernel: Load USTAR from a boot module if loading root partition fails

This allows banan-os to boot on hardware where we don't have working
storage driver or the storage driver fails (pretty common with my usb
mass storage drivers...)
This commit is contained in:
2025-06-30 16:09:55 +03:00
parent 17f1ac10e3
commit a5b4cee298
4 changed files with 236 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
#pragma once
#include <kernel/BootInfo.h>
#include <kernel/FS/FileSystem.h>
namespace Kernel
{
bool is_ustar_boot_module(const BootModule&);
BAN::ErrorOr<void> unpack_boot_module_into_filesystem(BAN::RefPtr<FileSystem>, const BootModule&);
}