forked from Hyperion/HyperionOS
vfs rewrite lol fml
This commit is contained in:
@@ -3,8 +3,11 @@ local kernel = ...
|
||||
kernel.log("Loading init system...")
|
||||
kernel.log("InitPath: "..kernel.config.initPath)
|
||||
local handle = kernel.vfs.open(kernel.config.initPath, "r")
|
||||
kernel.log("O")
|
||||
local data = kernel.vfs.read(handle, 1024 * 1024 * 4)
|
||||
kernel.log("R")
|
||||
kernel.vfs.close(handle)
|
||||
kernel.log("C")
|
||||
|
||||
local initFunc, err = load(data, "@sysinit")
|
||||
if not initFunc then
|
||||
|
||||
Reference in New Issue
Block a user