From 0189cc9d771e5911b07fbf91ca18da3a338f8d30 Mon Sep 17 00:00:00 2001 From: Nathan Lee Date: Sat, 3 Oct 2026 21:37:57 -0500 Subject: add first userspace invocation --- website-src/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'website-src/index.html') diff --git a/website-src/index.html b/website-src/index.html index b2eefd0..fa0187a 100644 --- a/website-src/index.html +++ b/website-src/index.html @@ -10,15 +10,20 @@ async function run() { await init(); const response = await fetch('/vmwebkrnl.bin'); + const initramfs = await fetch('/initramfs.cpio'); if (!response.ok) { console.log("OS image not present, not booting."); return; } + if (!initramfs.ok) { + console.log("Initial RAM filesystem not present, not booting."); + return; + } const image = new Uint8Array(await response.arrayBuffer()); const vmwebkrnl = new Uint8Array(2 * 1024 * 1024); vmwebkrnl.set(image); - const initrd = new Uint8Array(8); + const initrd = new Uint8Array(await initramfs.arrayBuffer()); const dram = new Uint8Array(1024 * 1024); boot(vmwebkrnl, initrd, dram); -- cgit v1.2.3