#!/bin/sh
# DF-2903 build/run — run as root in the DragonFly guest.
set -e
# build the image in-guest if python is absent: use the shipped ontrack.img
[ -f ontrack.img ] || python3 mkontrack.py
echo '=== stock kernel: expect instant panic (brelse: inappropriate B_PAGING)'
vnconfig -c -v -S 512 vn0 ontrack.img
echo '=== if you get here, the kernel did NOT panic (fixed kernel expected)'
diskinfo /dev/vn0 | head -2
ls /dev/vn0*
vnconfig -u vn0
