warewulf-dracut includes a dracut module to be installed in a container image to support building an initramfs that can boot from Warewulf. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
21 lines
332 B
Bash
Executable File
21 lines
332 B
Bash
Executable File
#!/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
|
|
inst_hook cmdline 30 "$moddir/parse-wwinit.sh"
|
|
inst_hook pre-mount 30 "$moddir/load-wwinit.sh"
|
|
}
|