Refactor ignition support during dracut
- Control root device using the node/profile root field - Add support for `/warewulf/wwinit.d` to run scripts during first stage - Move first-stage ignition support to `/warewulf/wwinit.d/` - Add `wwctl <node|profile> set --parttype` - Add overlay template functions `SystemdEscape` and `SystemdEscapePath` - Support configuring ignition with resources Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -194,3 +194,16 @@ func (config *NodesYaml) FindDiscoverableNode() (Node, string, error) {
|
||||
|
||||
return EmptyNode(), "", ErrNoUnconfigured
|
||||
}
|
||||
|
||||
func (node *Node) SetIds(id string) {
|
||||
node.id = id
|
||||
for diskId, disk := range node.Disks {
|
||||
disk.id = diskId
|
||||
for partitionId, partition := range disk.Partitions {
|
||||
partition.id = partitionId
|
||||
}
|
||||
}
|
||||
for fsId, fs := range node.FileSystems {
|
||||
fs.id = fsId
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user