fieldwitness/deploy/live-usb/config/hooks/live/0100-install-fieldwitness.hook.chroot
Aaron D. Lee 2fd3e0e31d
Some checks failed
CI / lint (push) Failing after 13s
CI / typecheck (push) Failing after 14s
Rename deploy artifacts for FieldWitness rebrand
Rename live-usb service files, hook scripts, and package lists from
soosef to fieldwitness. Fix remaining VERISOO_ env vars in docker
compose and kubernetes configs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 15:11:50 -04:00

27 lines
897 B
Bash
Executable File

#!/bin/bash
# Install FieldWitness and all dependencies into the live image.
# This runs inside the chroot during image build.
set -euo pipefail
echo "=== Installing FieldWitness ==="
# Create fieldwitness user
useradd -m -s /bin/bash -G sudo fieldwitness
echo "fieldwitness:fieldwitness" | chpasswd
# Create virtual environment
python3 -m venv /opt/fieldwitness-env
source /opt/fieldwitness-env/bin/activate
# Install fieldwitness with all extras (pre-built wheels from PyPI)
pip install --no-cache-dir "fieldwitness[web,cli,attest,stego-dct,stego-audio,fieldkit]"
# Verify installation
python3 -c "import fieldwitness; print(f'FieldWitness {fieldwitness.__version__} installed')"
python3 -c "from fieldwitness.stego import encode; print('stego OK')"
python3 -c "from fieldwitness.attest import Attestation; print('attest OK')"
deactivate
echo "=== FieldWitness installation complete ==="