mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 13:08:11 +00:00
Merge pull request #1422 from niusmallnan/update-ipxe
Boot a non-persistent RancherOS to RAM via iPXE
This commit is contained in:
@@ -10,11 +10,15 @@ weight: 112
|
|||||||
# Location of Kernel/Initrd images
|
# Location of Kernel/Initrd images
|
||||||
set base-url http://releases.rancher.com/os/latest
|
set base-url http://releases.rancher.com/os/latest
|
||||||
|
|
||||||
kernel ${base-url}/vmlinuz rancher.state.dev=LABEL=RANCHER_STATE rancher.state.autoformat=[/dev/sda] rancher.cloud_init.datasources=[url:http://example.com/cloud-config]
|
kernel ${base-url}/vmlinuz rancher.state.dev=LABEL=RANCHER_STATE rancher.state.autoformat=[/dev/sda] rancher.state.wait rancher.cloud_init.datasources=[url:http://example.com/cloud-config]
|
||||||
initrd ${base-url}/initrd
|
initrd ${base-url}/initrd
|
||||||
boot
|
boot
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you want to autoformat the disk when booting by iPXE, you should add the `rancher.state.autoformat` part to kernel cmdline. However, this does not install the bootloader to disk, so you cannot upgrade RancherOS.
|
||||||
|
|
||||||
|
If you don't add `rancher.state.autoformat`, RancherOS will run completely in memory, you can execute `ros install` to install to disk.
|
||||||
|
|
||||||
### Hiding sensitive kernel commandline parameters
|
### Hiding sensitive kernel commandline parameters
|
||||||
|
|
||||||
From RancherOS v0.9.0, secrets can be put on the `kernel` parameters line afer a `--` double dash, and they will be not be shown in any `/proc/cmdline`. These parameters
|
From RancherOS v0.9.0, secrets can be put on the `kernel` parameters line afer a `--` double dash, and they will be not be shown in any `/proc/cmdline`. These parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user