incus: project_ensure creates with all features disabled (share profiles/images/etc with default project)
Author:
Chris Tusa <chris.tusa@leafscale.com>
Date:
May 03, 2026 21:12
Node:
b8088ef69b233d20699e2022924367b13f164ad5
Branch:
default
Tags:
v0.1.0
Changed files:
Diff
diff -r f11b2af2278d -r b8088ef69b23 src/incus.reef --- a/src/incus.reef Sun May 03 21:08:31 2026 +0000 +++ b/src/incus.reef Sun May 03 21:12:56 2026 +0000 @@ -70,8 +70,18 @@ if exit == 0 return @Result[bool, string].Ok(true) end if - // Create - return run_incus(["project", "create", project]) + // Create with all features disabled so the project is a pure container + // namespace and shares images/profiles/networks/storage with the default + // project. Without this, profiles like 'claude-share' that live in the + // default project would be invisible to containers in this project. + return run_incus([ + "project", "create", project, + "-c", "features.images=false", + "-c", "features.profiles=false", + "-c", "features.networks=false", + "-c", "features.storage.volumes=false", + "-c", "features.storage.buckets=false" + ]) end project_ensure fn container_exists(project: string, name: string): rg.Result[bool, string]