mirror of
https://github.com/siderolabs/talos.git
synced 2025-09-15 10:51:12 +02:00
This allows boards to provide kernel args at install time. We need this so that we can set the console. Signed-off-by: Andrew Rynhard <andrew@rynhard.io>
22 lines
600 B
Go
22 lines
600 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package runtime
|
|
|
|
import "github.com/talos-systems/go-procfs/procfs"
|
|
|
|
// PartitionOptions are the board specific options for customizing the
|
|
// partition table.
|
|
type PartitionOptions struct {
|
|
PartitionsOffset uint64
|
|
}
|
|
|
|
// Board defines the requirements for a SBC.
|
|
type Board interface {
|
|
Name() string
|
|
Install(string) error
|
|
KernelArgs() procfs.Parameters
|
|
PartitionOptions() *PartitionOptions
|
|
}
|