Skip to content

Commit

Permalink
run make update-metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
  • Loading branch information
mihalicyn committed Mar 22, 2024
1 parent 83098ac commit cc93afb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
14 changes: 13 additions & 1 deletion doc/config_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1791,9 +1791,21 @@ See {ref}`cluster-evacuate` for more information.
```{config:option} linux.kernel_modules instance-miscellaneous
:condition: "container"
:liveupdate: "yes"
:shortdesc: "Kernel modules to load before starting the instance"
:shortdesc: "Kernel modules to load or allow loading"
:type: "string"
Specify the kernel modules as a comma-separated list.

The modules are loaded before the instance starts, or they can be loaded by a privileged user if {config:option}`instance-miscellaneous:linux.kernel_modules.load` is set to `dynamic`.
```

```{config:option} linux.kernel_modules.load instance-miscellaneous
:condition: "container"
:defaultdesc: "`boot`"
:liveupdate: "no"
:shortdesc: "How to load kernel modules"
:type: "string"
This option specifies how to load the kernel modules that are specified in {config:option}`instance-miscellaneous:linux.kernel_modules`.
Possible values are `boot` (load the modules when booting the container) and `dynamic` (intercept the `finit_modules()` syscall and allow a privileged user in the container's user namespace to load the modules).
```

```{config:option} linux.sysctl.* instance-miscellaneous
Expand Down
14 changes: 12 additions & 2 deletions lxd/metadata/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -2060,8 +2060,18 @@
"linux.kernel_modules": {
"condition": "container",
"liveupdate": "yes",
"longdesc": "Specify the kernel modules as a comma-separated list.",
"shortdesc": "Kernel modules to load before starting the instance",
"longdesc": "Specify the kernel modules as a comma-separated list.\n\nThe modules are loaded before the instance starts, or they can be loaded by a privileged user if {config:option}`instance-miscellaneous:linux.kernel_modules.load` is set to `dynamic`.",
"shortdesc": "Kernel modules to load or allow loading",
"type": "string"
}
},
{
"linux.kernel_modules.load": {
"condition": "container",
"defaultdesc": "`boot`",
"liveupdate": "no",
"longdesc": "This option specifies how to load the kernel modules that are specified in {config:option}`instance-miscellaneous:linux.kernel_modules`.\nPossible values are `boot` (load the modules when booting the container) and `dynamic` (intercept the `finit_modules()` syscall and allow a privileged user in the container's user namespace to load the modules).",
"shortdesc": "How to load kernel modules",
"type": "string"
}
},
Expand Down

0 comments on commit cc93afb

Please sign in to comment.