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:
20
dracut/modules.d/90wwinit/module-setup.sh
Executable file
20
dracut/modules.d/90wwinit/module-setup.sh
Executable 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"
|
||||
}
|
||||
Reference in New Issue
Block a user