From 13a52206150f92d5282d1c1683bab17893ba607c Mon Sep 17 00:00:00 2001 From: Sam & Claude Date: Thu, 25 Jun 2026 04:27:18 +0200 Subject: [PATCH] fix(daemon): export ZOT_HOME so autospawned zot reads the right AGENTS.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rc.d drops privilege via su -m, which preserves the environment from /etc/rc (HOME=/). Without an explicit ZOT_HOME, zot resolves to /.local/state/zot — missing any AGENTS.md installed by the seed importer. Pin ZOT_HOME to /var/db/colibri/.local/state/zot. The seed importer (clawdie-iso) targets this same path, so AGENTS.md placed on the seed reaches the autospawned zot's global slot. --- packaging/freebsd/colibri_daemon.in | 1 + 1 file changed, 1 insertion(+) diff --git a/packaging/freebsd/colibri_daemon.in b/packaging/freebsd/colibri_daemon.in index 0dae534..ac9a571 100644 --- a/packaging/freebsd/colibri_daemon.in +++ b/packaging/freebsd/colibri_daemon.in @@ -109,6 +109,7 @@ colibri_daemon_prestart() export COLIBRI_HOST="${colibri_daemon_host}" export COLIBRI_COST_MODE="${colibri_daemon_cost_mode}" export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" + export ZOT_HOME="${colibri_daemon_data_dir}/.local/state/zot" } colibri_daemon_poststart() -- 2.45.3