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:
15
tests/cmdline_test.go
Executable file
15
tests/cmdline_test.go
Executable 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")
|
||||
}
|
Reference in New Issue
Block a user