# shellcheck shell=bash # Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License. # See LICENSE.md for license information. # SPDX-License-Identifier: MIT # # The Haiku x86_64 virtual machine the haiku port's programs run in under # QEMU (joey-run --port haiku, and the gates): the R1/beta6 anyboot image, # made to boot straight to the desktop and run the job runner # (installer/lib/haiku.sh), which runs what a gate or joey-run hands it on a # second disk. Into toolchains/opt/haikuVm/haiku.img; runs never write to it # (QEMU's snapshot mode). compDescription="emulator: Haiku R1/beta6 x86_64 VM image (haiku)" compGroups="emulator:haiku" compRequires="qemu haikuTools" compHostDeps="python3" haikuArch="x86_64" # shellcheck source=installer/lib/haiku.sh source "$JOEY_INSTALLER/lib/haiku.sh" compPin="$(haikuVmPin "$haikuArch")" compInstall() { mkdir -p "$compDir" haikuVmPrepare "$haikuArch" "$compDir/haiku.img" } compInstalled() { [ -s "$compDir/haiku.img" ] } compVerify() { haikuVmVerify "$compDir/haiku.img" } compEnv() { envVar HAIKU_VM_IMAGE "$compDir/haiku.img" }