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