Skip to content

Commit 9ebe1f1

Browse files
api_extensions: add environment_runtime_hooks extension
Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
1 parent fbd37f0 commit 9ebe1f1

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

doc/api-extensions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,10 @@ This adds the new options `cgroup2`, `cgroup2:ro`, `cgroup2:force`,
160160
`cgroup2:ro:force` for the `lxc.mount.auto` configuration key. For example, if
161161
a user specifies `cgroup2:force` LXC will pre-mount a pure `cgroup2` layout for
162162
the container even if the host is running with a hybrid layout.
163+
164+
## environment\_runtime\_hooks
165+
166+
This introduces `lxc.environment.runtime` and `lxc.environment.hooks`
167+
configuration keys to allow environment variables to be applied only to the
168+
container init process or only to hooks respectively.
169+
`lxc.environment` remains and still applies to both.

src/lxc/api_extensions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ static char *api_extensions[] = {
5252
"idmapped_mounts_v2",
5353
"core_scheduling",
5454
"cgroup2_auto_mounting",
55+
"environment_runtime_hooks",
5556
};
5657

5758
static size_t nr_api_extensions = sizeof(api_extensions) / sizeof(*api_extensions);

0 commit comments

Comments
 (0)