blob: 1cda92a0fe85b0a8fe0fe38d66132768da1ae5db (
plain) (
tree)
|
|
#!/usr/bin/env bash
check() {
# Tell dracut that this module should only be included if it is required
# explicitly.
if ! hash kexec; then
derror "Failed to find kexec, please install it when using this module."
return 1
fi
return 255
}
depends() {
echo dnbd3-rootfs slx-tools
}
install() {
inst_simple "$moddir/scripts/kexec-reboot.sh" "/bin/kexec-reboot"
inst_multiple kexec
}
|