diff options
Diffstat (limited to 'website-src')
| -rw-r--r-- | website-src/index.html | 7 | ||||
| -rw-r--r-- | website-src/initramfs.cpio | bin | 0 -> 1024 bytes |
2 files changed, 6 insertions, 1 deletions
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); diff --git a/website-src/initramfs.cpio b/website-src/initramfs.cpio Binary files differnew file mode 100644 index 0000000..bdfe10d --- /dev/null +++ b/website-src/initramfs.cpio |
