On Fri, Mar 26, 2021 at 10:40 PM Coiby Xu <coxu(a)redhat.com> wrote:
die (in dracut-lib.sh) is supposed to be used in the initramfs environment.
Signed-off-by: Coiby Xu <coxu(a)redhat.com>
---
dracut-module-setup.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 8316589..394317c 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -334,7 +334,10 @@ kdump_setup_znet() {
kdump_get_ip_route()
{
local _route=$(/sbin/ip -o route get to $1 2>&1)
- [ $? != 0 ] && die "Bad kdump network destination: $1"
+ if [[ $? != 0 ]]; then
+ derror "Bad kdump network destination: $1"
+ exit 1
+ fi
echo $_route
}
--
2.31.0
_______________________________________________
kexec mailing list -- kexec(a)lists.fedoraproject.org
To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
Thanks!
Acked-by: Kairui Song <kasong(a)redhat.com>
--
Best Regards,
Kairui Song