1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 13:39:53 +00:00

Use the kernel cmdline elide patch to load config into RancherOS that isn't visible in /pro/cmdline

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-11 00:23:22 +10:00
parent 4981e76755
commit f6ce1f0685
7 changed files with 45 additions and 3 deletions

15
tests/cmdline_test.go Executable file
View File

@@ -0,0 +1,15 @@
package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestElideCmdLine(c *C) {
runArgs := []string{
"--fresh",
"--append-init",
"cc.hostname=nope rancher.debug=true",
}
s.RunQemuWith(c, runArgs...)
s.CheckOutput(c, "nope\n", Equals, "hostname")
s.CheckOutput(c, "printk.devkmsg=on rancher.debug=true rancher.password=rancher console=ttyS0 rancher.autologin=ttyS0 rancher.state.dev=LABEL=RANCHER_STATE rancher.state.autoformat=[/dev/sda,/dev/vda] rancher.rm_usr -- \n", Equals, "cat /proc/cmdline")
}