1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 15:09:27 +00:00

Merge pull request #1443 from joshwget/document-module-loading

Document module loading
This commit is contained in:
Denise
2016-12-01 18:37:29 -08:00
committed by GitHub

View File

@@ -7,6 +7,18 @@ layout: os-default
## 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.
```yaml