New warewulf-dracut subpackage

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>
This commit is contained in:
Jonathon Anderson
2024-04-16 10:57:58 -06:00
parent a322061fe9
commit 18cebb8652
7 changed files with 94 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#!/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"
}