Expand description
Artifact resolution, pinned HTTPS download with SHA-256 verification, native kwpatch
unpacking, and version-keyed .cwasm AOT precompilation cache.
Structs§
- Resolved
Artifacts - Resolved kernel + initrd + cmdline + datadisk template + distro disk ready to boot.
Constants§
- DEFAULT_
ALPINE_ SHA256 - Expected SHA-256 of
alpine.erofsforDEFAULT_UNKERNEL_VERSION. - DEFAULT_
BUNDLE_ SHA256 - Expected SHA-256 of
unkernel.wasmforDEFAULT_UNKERNEL_VERSION. - DEFAULT_
SMP_ SHA256 - Expected SHA-256 of the unpacked SMP kernel for
DEFAULT_UNKERNEL_VERSION. - DEFAULT_
UNKERNEL_ VERSION - Pinned upstream
unkernelrelease verified with this host ABI.
Functions§
- default_
cache_ dir - Default cache root (
$UNKERNEL_RS_CACHE_DIR->$XDG_CACHE_HOME/unkernel-rs->~/.cache/unkernel-rs->%LOCALAPPDATA%\unkernel-rs\cache). - prepare_
artifacts - Load (or unpack + Cranelift-compile + cache) the SMP Wasm module, initrd, cmdline, and distro.
- resolve_
bundle_ path - Ensure
unkernel.wasmis present locally (reusing explicit path, env override, or cache, or downloading pinned version over HTTPS ifoffline == false). - resolve_
distro_ path - Ensure the named distro image (
alpine,debian, etc.) is available locally. - sha256_
file - sha256_
hex