joeylib2/installer/components/beosVm.sh

40 lines
1 KiB
Bash

# 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 BeOS R5 virtual machine the beos port's programs run in under QEMU
# (the gates): your BeOS 5 Professional CD's boot floppy and x86 system,
# made to run the job runner (installer/lib/beos.sh), which runs what a
# gate hands it on a second disk. Into toolchains/opt/beosVm; runs never
# write to it (QEMU's snapshot mode).
compDescription="emulator: BeOS R5 VM from your BeOS 5 Pro CD (beos; private media: import)"
compGroups="emulator:beos"
compRequires="qemu haikuTools"
compHostDeps="python3"
# shellcheck source=installer/lib/beos.sh
source "$JOEY_INSTALLER/lib/beos.sh"
compPin="$(beosVmPin)"
compInstall() {
beosVmPrepare "$compDir"
}
compInstalled() {
[ -s "$compDir/$BEOS_VM_SYSTEM_DISK" ] && [ -s "$compDir/$BEOS_VM_FLOPPY" ]
}
compVerify() {
beosVmVerify "$compDir"
}
compEnv() {
envVar BEOS_VM_DIR "$compDir"
}