1
0
mirror of https://github.com/rancher/os.git synced 2025-06-28 15:56:58 +00:00

Added adding kernel parameters to docs

This commit is contained in:
Sebastiaan van Steenis 2017-05-31 17:12:03 +02:00
parent b27fe9422c
commit d2544357dc
2 changed files with 29 additions and 0 deletions

View File

@ -48,6 +48,7 @@
<li><a href="{{site.baseurl}}/os/configuration/users/">Users</a></li>
<li><a href="{{site.baseurl}}/os/configuration/resizing-device-partition/">Resizing a Device Partition</a></li>
<li><a href="{{site.baseurl}}/os/configuration/sysctl/">sysctl Settings</a></li>
<li><a href="{{site.baseurl}}/os/configuration/adding-kernel-parameters/">Adding kernel parameters</a></li>
<li><a href="{{site.baseurl}}/os/configuration/loading-kernel-modules/">Loading kernel modules</a></li>
<li><a href="{{site.baseurl}}/os/configuration/kernel-modules-kernel-headers/">Install kernel modules that require kernel headers</a></li>
<li><a href="{{site.baseurl}}/os/configuration/dkms/">DKMS</a></li>

View File

@ -0,0 +1,28 @@
---
title: Adding kernel parameters
layout: os-default
---
## Kernel parameters
There are two ways to edit the kernel parameters, in-place (editing the file and reboot) or during installation to disk.
### In-place editing
For in-place editing, you will need to run a container with an editor and a mount to access the `/boot/global.cfg` file containing the kernel parameters.
> To activate this setting, you will need to reboot.
```bash
$ sudo system-docker run --rm -it -v /:/host alpine vi /host/boot/global.cfg
```
### During installation
If you want to set the extra kernel parameters when you are [Installing RancherOS to Disk]({{site.baseurl}}/os/running-rancheros/server/install-to-disk/) please use the `--append` parameter.
```bash
$ sudo ros install -d /dev/sda --append "rancheros.autologin=tty1"
```