Don't use die in dracut-module-setup.sh
die (in dracut-lib.sh) is supposed to be used in the initramfs environment. Signed-off-by: Coiby Xu <coxu@redhat.com> Acked-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
parent
c6021648f1
commit
8b4b7bf808
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user