#!/bin/sh set -e # Copy the static root trust anchor into the writable run-dir. # unbound updates auto-trust-anchor-file in place (RFC5011 rollover), so it # must live on a writable filesystem (tmpfs when running with read_only). # Anchor ships in the dnssec-root package at /usr/share/dnssec-root/. cp -f /usr/share/dnssec-root/trusted-key.key /run/unbound/root.key # Fail fast on broken drop-in configs from /config before starting. unbound-checkconf /etc/unbound/unbound.conf exec unbound -d -c /etc/unbound/unbound.conf