added shim/grub find to provision process

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2023-07-05 15:43:31 +02:00
committed by Jonathon Anderson
parent 4cacd0ef75
commit a36cb23319
8 changed files with 161 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ type NodeConf struct {
ClusterName string `yaml:"cluster name,omitempty" lopt:"cluster" sopt:"c" comment:"Set cluster group"`
ContainerName string `yaml:"container name,omitempty" lopt:"container" sopt:"C" comment:"Set container name"`
Ipxe string `yaml:"ipxe template,omitempty" lopt:"ipxe" comment:"Set the iPXE template name"`
Grub string `yaml:"grub template,omitempty" lopt:"grub" comment:"Set the grub template name"`
// Deprecated start
// Kernel settings here are deprecated and here for backward compatibility
KernelVersion string `yaml:"kernel version,omitempty"`
@@ -52,6 +53,7 @@ type NodeConf struct {
PrimaryNetDev string `yaml:"primary network,omitempty" lopt:"primarynet" sopt:"p" comment:"Set the primary network interface"`
Disks map[string]*Disk `yaml:"disks,omitempty"`
FileSystems map[string]*FileSystem `yaml:"filesystems,omitempty"`
BootMethod string `yaml:"boot method,omitempty" lopt:"bootmethod" comment:" boot method, can be grub or ipxe"`
}
type IpmiConf struct {
@@ -154,6 +156,7 @@ type NodeInfo struct {
ClusterName Entry
ContainerName Entry
Ipxe Entry
Grub Entry
RuntimeOverlay Entry
SystemOverlay Entry
Root Entry
@@ -164,6 +167,7 @@ type NodeInfo struct {
Ipmi *IpmiEntry
Profiles Entry
PrimaryNetDev Entry
BootMethod Entry
NetDevs map[string]*NetDevEntry
Tags map[string]*Entry
Disks map[string]*DiskEntry