2024-11-16 22:27:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Exit on any errors
|
|
|
|
set -e
|
|
|
|
|
|
|
|
DIR="$(dirname "$0")"
|
|
|
|
|
|
|
|
. "$DIR"/func.sh
|
|
|
|
|
|
|
|
depcheck
|
|
|
|
|
2024-12-23 18:59:44 +00:00
|
|
|
kextparam="console=ttyS0 console=tty1" kflav="lts" size=4G setup
|
2024-11-16 22:27:59 +00:00
|
|
|
|
|
|
|
addpkg \
|
|
|
|
openssh-server \
|
|
|
|
libvirt \
|
|
|
|
libvirt-qemu \
|
|
|
|
libvirt-client \
|
|
|
|
qemu \
|
|
|
|
qemu-audio-spice \
|
|
|
|
qemu-chardev-spice \
|
|
|
|
qemu-hw-display-qxl \
|
|
|
|
qemu-hw-display-virtio-vga \
|
|
|
|
qemu-hw-usb-host \
|
|
|
|
qemu-hw-usb-redirect \
|
|
|
|
qemu-img \
|
|
|
|
qemu-system-x86_64 \
|
|
|
|
qemu-ui-spice-core \
|
|
|
|
swtpm
|
|
|
|
|
2024-12-23 18:59:44 +00:00
|
|
|
wrapped nnd-s6 depend add default bundle.core bundle.net bundle.libvirt bundle.tty bundle.custom
|
|
|
|
wrapped nnd-s6 depend add bundle.custom sshd
|
2024-11-16 22:27:59 +00:00
|
|
|
addtty ttyS0
|
2024-12-23 18:59:44 +00:00
|
|
|
addsshkey "$DIR"/keys/personal.pub
|
|
|
|
|
|
|
|
mkdir -p "$tmpdir"/etc/s6/env/mdevd
|
|
|
|
echo "2000000" > "$tmpdir"/etc/s6/env/mdevd/KBUFSZ
|
2024-11-16 22:27:59 +00:00
|
|
|
|
|
|
|
pack
|