#!/bin/sh
# DF-2630 build: forge the PoC images on the host.
# base.img is created once inside the guest:
#   truncate -s 64M base.img && newfs_hammer2 -L testvol base.img
# and copied to the host (scp -F dfbsd-qemu/config dfbsd:/root/poc/base.img .)
set -e
HERE=$(dirname "$0")
python3 "$HERE/forge_df2630.py" base.img wedge   wedge.img
python3 "$HERE/forge_df2630.py" base.img control control.img
echo "--- wedge vs control: exactly ONE byte must differ ---"
cmp -l wedge.img control.img || true
md5sum base.img wedge.img control.img
echo "[+] push to guest: scp -F dfbsd-qemu/config wedge.img control.img dfbsd:/root/poc/"
