From d2544357dc7dba1ceca814bbf894d9e0522f21ed Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Wed, 31 May 2017 17:12:03 +0200 Subject: [PATCH] Added adding kernel parameters to docs --- docs/_includes/os-sidebar.html | 1 + .../adding-kernel-parameters/index.md | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 docs/os/configuration/adding-kernel-parameters/index.md diff --git a/docs/_includes/os-sidebar.html b/docs/_includes/os-sidebar.html index d4b7e7fb..fa2114f6 100644 --- a/docs/_includes/os-sidebar.html +++ b/docs/_includes/os-sidebar.html @@ -48,6 +48,7 @@
  • Users
  • Resizing a Device Partition
  • sysctl Settings
  • +
  • Adding kernel parameters
  • Loading kernel modules
  • Install kernel modules that require kernel headers
  • DKMS
  • diff --git a/docs/os/configuration/adding-kernel-parameters/index.md b/docs/os/configuration/adding-kernel-parameters/index.md new file mode 100644 index 00000000..eb0179d2 --- /dev/null +++ b/docs/os/configuration/adding-kernel-parameters/index.md @@ -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" +```