blob: 1cda92a0fe85b0a8fe0fe38d66132768da1ae5db (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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
}
|