-
Notifications
You must be signed in to change notification settings - Fork 13
/
kernel.go
35 lines (31 loc) · 933 Bytes
/
kernel.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright The Mantle Authors
// SPDX-License-Identifier: Apache-2.0
package ignition
import (
"github.com/coreos/go-semver/semver"
"github.com/flatcar/mantle/kola/cluster"
"github.com/flatcar/mantle/kola/register"
"github.com/flatcar/mantle/platform/conf"
)
func init() {
register.Register(®ister.Test{
Name: "cl.ignition.kargs",
Run: check,
ClusterSize: 1,
UserData: conf.Butane(`---
variant: flatcar
version: 1.0.0
kernel_arguments:
should_exist:
- quiet`),
MinVersion: semver.Version{Major: 3185},
// The additional reboot causes a large waiting time
// and it's enough to test this on QEMU and other clouds
// to check that the grub.cfg rewriting causes no problems
ExcludePlatforms: []string{"equinixmetal"},
})
}
func check(c cluster.TestCluster) {
m := c.Machines()[0]
c.AssertCmdOutputContains(m, "cat /proc/cmdline", " quiet") // assuming space for word separation
}