1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

save the elided cmdline into an env var

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-14 12:05:07 +10:00
parent 368a13ed13
commit 73980f9c73
5 changed files with 74 additions and 7 deletions

View File

@@ -29,6 +29,8 @@ For example, the `kernel` line above could be written as:
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]
```
The hidden part of the command line can be accessed with either `sudo ros config get rancher.environment.EXTRA_CMDLINE`, or by using a service file's environment array.
### cloud-init Datasources