DragonFlyBSD Kernel Audit
DF-0824 / build.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0824 build.sh — no compilation needed on the guest (the trigger is a shell
# script). This script just verifies the image exists.
# The ext2 image is crafted on the HOST by craft_img.py (needs mke2fs + debugfs).
set -e
cd "$(dirname "$0")"
if [ ! -f df0824.img ]; then
    echo "df0824.img not found — run: python3 craft_img.py"
    exit 1
fi
echo "image ready: df0824.img ($(stat -f%z df0824.img 2>/dev/null || stat -c%s df0824.img) bytes)"
echo "BUILD_OK"