Skip to content

Commit

Permalink
refactor: use quirks in kernel args
Browse files Browse the repository at this point in the history
Make default args depend on quirks, and also pass quirks down to
platform code.

Reduces amount of hacks, but it is functionally equivalent.

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira committed Dec 23, 2024
1 parent b4aa518 commit 8212e48
Show file tree
Hide file tree
Showing 31 changed files with 182 additions and 63 deletions.
4 changes: 2 additions & 2 deletions cmd/installer/pkg/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ func Install(ctx context.Context, p runtime.Platform, mode Mode, opts *Options)
cmdline.Append(constants.KernelParamConfig, opts.ConfigSource)
}

cmdline.SetAll(p.KernelArgs(opts.Arch).Strings())
cmdline.SetAll(p.KernelArgs(opts.Arch, quirks.Quirks{}).Strings())

// first defaults, then extra kernel args to allow extra kernel args to override defaults
if err := cmdline.AppendAll(kernel.DefaultArgs); err != nil {
if err := cmdline.AppendAll(kernel.DefaultArgs(quirks.Quirks{})); err != nil {
return err
}

Expand Down
3 changes: 3 additions & 0 deletions cmd/talosctl/cmd/mgmt/cluster/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import (
"github.com/siderolabs/talos/pkg/machinery/config/types/security"
"github.com/siderolabs/talos/pkg/machinery/config/types/v1alpha1"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/version"
"github.com/siderolabs/talos/pkg/provision"
Expand Down Expand Up @@ -905,6 +906,7 @@ func create(ctx context.Context) error {
nodeReq := provision.NodeRequest{
Name: nodeName(clusterName, "controlplane", i+1, nodeUUID),
Type: machine.TypeControlPlane,
Quirks: quirks.New(talosVersion),
IPs: nodeIPs,
Memory: controlPlaneMemory,
NanoCPUs: controlPlaneNanoCPUs,
Expand Down Expand Up @@ -983,6 +985,7 @@ func create(ctx context.Context) error {
Name: nodeName(clusterName, "worker", i, nodeUUID),
Type: machine.TypeWorker,
IPs: nodeIPs,
Quirks: quirks.New(talosVersion),
Memory: workerMemory,
NanoCPUs: workerNanoCPUs,
Disks: disks,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
netctrl "github.com/siderolabs/talos/internal/app/machined/pkg/controllers/network"
v1alpha1runtime "github.com/siderolabs/talos/internal/app/machined/pkg/runtime"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -714,7 +715,7 @@ func (mock *platformMock) Mode() v1alpha1runtime.Mode {
return v1alpha1runtime.ModeCloud
}

func (mock *platformMock) KernelArgs(string) procfs.Parameters {
func (mock *platformMock) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return nil
}

Expand Down
3 changes: 2 additions & 1 deletion internal/app/machined/pkg/runtime/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/cosi-project/runtime/pkg/state"
"github.com/siderolabs/go-procfs/procfs"

"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
"github.com/siderolabs/talos/pkg/machinery/resources/runtime"
)
Expand All @@ -30,7 +31,7 @@ type Platform interface {
Configuration(context.Context, state.State) ([]byte, error)

// KernelArgs returns additional kernel arguments which should be injected for the kernel boot.
KernelArgs(arch string) procfs.Parameters
KernelArgs(arch string, quirks quirks.Quirks) procfs.Parameters

// NetworkConfiguration fetches network configuration from the platform metadata.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime"
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -167,7 +168,7 @@ func (a *Akamai) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (a *Akamai) KernelArgs(string) procfs.Parameters {
func (a *Akamai) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("ttyS0").Append("tty0").Append("tty1"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/errors"
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
)
Expand Down Expand Up @@ -142,7 +143,7 @@ func (a *AWS) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (a *AWS) KernelArgs(string) procfs.Parameters {
func (a *AWS) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty1").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/download"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -216,7 +217,7 @@ func (a *Azure) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (a *Azure) KernelArgs(string) procfs.Parameters {
func (a *Azure) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("ttyS0,115200n8"),
procfs.NewParameter("earlyprintk").Append("ttyS0,115200"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/download"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
)
Expand Down Expand Up @@ -86,7 +87,7 @@ func (e *Cloudstack) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (e *Cloudstack) KernelArgs(string) procfs.Parameters {
func (e *Cloudstack) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty1").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime"
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/container/internal/files"
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/errors"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
)

Expand Down Expand Up @@ -51,7 +52,7 @@ func (c *Container) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (c *Container) KernelArgs(string) procfs.Parameters {
func (c *Container) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/download"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -256,7 +257,7 @@ func (d *DigitalOcean) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (d *DigitalOcean) KernelArgs(string) procfs.Parameters {
func (d *DigitalOcean) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("ttyS0").Append("tty0").Append("tty1"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/download"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -112,7 +113,7 @@ func (p *EquinixMetal) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (p *EquinixMetal) KernelArgs(arch string) procfs.Parameters {
func (p *EquinixMetal) KernelArgs(arch string, _ quirks.Quirks) procfs.Parameters {
switch arch {
case "amd64":
return []*procfs.Parameter{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/download"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
)
Expand Down Expand Up @@ -86,7 +87,7 @@ func (e *Exoscale) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (e *Exoscale) KernelArgs(string) procfs.Parameters {
func (e *Exoscale) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty1").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/errors"
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -199,7 +200,7 @@ func (g *GCP) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (g *GCP) KernelArgs(string) procfs.Parameters {
func (g *GCP) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/download"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -186,7 +187,7 @@ func (h *Hcloud) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (h *Hcloud) KernelArgs(string) procfs.Parameters {
func (h *Hcloud) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty1").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
13 changes: 10 additions & 3 deletions internal/app/machined/pkg/runtime/v1alpha1/platform/metal/metal.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/siderolabs/talos/pkg/machinery/cel"
"github.com/siderolabs/talos/pkg/machinery/cel/celenv"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/meta"
"github.com/siderolabs/talos/pkg/machinery/resources/block"
"github.com/siderolabs/talos/pkg/machinery/resources/hardware"
Expand Down Expand Up @@ -195,14 +196,20 @@ func readConfigFromISO(ctx context.Context, r state.State) ([]byte, error) {
}

// KernelArgs implements the runtime.Platform interface.
func (m *Metal) KernelArgs(arch string) procfs.Parameters {
func (m *Metal) KernelArgs(arch string, quirks quirks.Quirks) procfs.Parameters {
switch arch {
case "amd64":
return []*procfs.Parameter{
if quirks.SupportsMetalPlatformConsoleTTYS0() {
return procfs.Parameters{
procfs.NewParameter("console").Append("ttyS0").Append("tty0"),
}
}

return procfs.Parameters{
procfs.NewParameter("console").Append("tty0"),
}
case "arm64":
return []*procfs.Parameter{
return procfs.Parameters{
procfs.NewParameter("console").Append("ttyAMA0").Append("tty0"),
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/errors"
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
)
Expand Down Expand Up @@ -108,7 +109,7 @@ func (n *Nocloud) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (n *Nocloud) KernelArgs(string) procfs.Parameters {
func (n *Nocloud) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty1").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/errors"
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/address"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -225,7 +226,7 @@ func (o *OpenNebula) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (o *OpenNebula) KernelArgs(string) procfs.Parameters {
func (o *OpenNebula) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty1").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/address"
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -378,7 +379,7 @@ func (o *OpenStack) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (o *OpenStack) KernelArgs(string) procfs.Parameters {
func (o *OpenStack) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty1").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/download"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -159,7 +160,7 @@ func (o *Oracle) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (o *Oracle) KernelArgs(string) procfs.Parameters {
func (o *Oracle) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty1").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/download"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -199,7 +200,7 @@ func (s *Scaleway) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (s *Scaleway) KernelArgs(string) procfs.Parameters {
func (s *Scaleway) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter("console").Append("tty1").Append("ttyS0"),
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/siderolabs/talos/internal/app/machined/pkg/runtime/v1alpha1/platform/internal/netutils"
"github.com/siderolabs/talos/pkg/download"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
"github.com/siderolabs/talos/pkg/machinery/resources/network"
runtimeres "github.com/siderolabs/talos/pkg/machinery/resources/runtime"
Expand Down Expand Up @@ -195,7 +196,7 @@ func (u *UpCloud) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (u *UpCloud) KernelArgs(string) procfs.Parameters {
func (u *UpCloud) KernelArgs(string, quirks.Quirks) procfs.Parameters {
return []*procfs.Parameter{
procfs.NewParameter(constants.KernelParamNetIfnames).Append("0"),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/siderolabs/talos/internal/app/machined/pkg/runtime"
"github.com/siderolabs/talos/pkg/machinery/constants"
"github.com/siderolabs/talos/pkg/machinery/imager/quirks"
)

// VMware is the concrete type that implements the platform.Platform interface.
Expand All @@ -26,7 +27,7 @@ func (v *VMware) Mode() runtime.Mode {
}

// KernelArgs implements the runtime.Platform interface.
func (v *VMware) KernelArgs(arch string) procfs.Parameters {
func (v *VMware) KernelArgs(arch string, _ quirks.Quirks) procfs.Parameters {
switch arch {
case "amd64":
return []*procfs.Parameter{
Expand Down
Loading

0 comments on commit 8212e48

Please sign in to comment.