mirror of
https://github.com/rancher/os.git
synced 2025-09-16 23:21:19 +00:00
Merge pull request #1443 from joshwget/document-module-loading
Document module loading
This commit is contained in:
@@ -7,6 +7,18 @@ layout: os-default
|
|||||||
## Loading Kernel Modules
|
## Loading Kernel Modules
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Kernel modules can be automatically loaded with the `rancher.modules` cloud-config field.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
#cloud-config
|
||||||
|
rancher:
|
||||||
|
modules: [btrfs]
|
||||||
|
```
|
||||||
|
|
||||||
|
This functionality is also available via a kernel parameter. For example, the btrfs module could be automatically loaded with `rancher.modules=[btrfs]` as a kernel parameter.
|
||||||
|
|
||||||
|
### Loading Kernel Modules via a System Service
|
||||||
|
|
||||||
Privileged containers can load kernel modules. In RancherOS, the kernel modules are in the standard `/lib/modules/$(uname -r)` folder. If you want to be able to run `modprobe` from a container, you will need to bind mount the `/lib/modules` into your container.
|
Privileged containers can load kernel modules. In RancherOS, the kernel modules are in the standard `/lib/modules/$(uname -r)` folder. If you want to be able to run `modprobe` from a container, you will need to bind mount the `/lib/modules` into your container.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
Reference in New Issue
Block a user