- 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>
25 lines
579 B
Bash
25 lines
579 B
Bash
#!/bin/bash
|
|
|
|
check() {
|
|
# Don't include in hostonly mode
|
|
[[ $hostonly ]] && return 1
|
|
|
|
# Don't include by default
|
|
return 255
|
|
}
|
|
|
|
depends() {
|
|
echo network
|
|
return 0
|
|
}
|
|
|
|
install() {
|
|
inst_multiple cpio curl dmidecode
|
|
inst_hook cmdline 30 "$moddir/parse-wwinit.sh"
|
|
inst_hook pre-mount 30 "$moddir/load-wwinit.sh"
|
|
if dracut_module_included "network-manager" && dracut_module_included "systemd"
|
|
then
|
|
inst_simple "$moddir/nm-wait-online-initrd.service.override" "/etc/systemd/system/nm-wait-online-initrd.service.d/override.conf"
|
|
fi
|
|
}
|