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:
12
kernel/include/kernel/FS/USTARModule.h
Normal file
12
kernel/include/kernel/FS/USTARModule.h
Normal 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&);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user