#!/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 }