kdump-lib.sh: fix a warning in prepare_kdump_bootinfo()
Resolves: bz1968374
Upstream: Fedora
Conflict: None
commit 39a642b66b
Author: Hari Bathini <hbathini@linux.ibm.com>
Date: Tue Jun 1 16:46:58 2021 +0530
kdump-lib.sh: fix a warning in prepare_kdump_bootinfo()
Fix the warning observed when KDUMP_KERNELVER is specified:
kdumpctl[10926]: /lib/kdump/kdump-lib.sh: line 697: [: missing `]'
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Acked-by: Kairui Song <kasong@redhat.com>
Signed-off-by: Pingfan Liu <piliu@redhat.com>
This commit is contained in:
parent
c96d511a36
commit
8ce1f3c1df
@ -741,7 +741,7 @@ prepare_kdump_bootinfo()
|
|||||||
local boot_imglist boot_dirlist boot_initrdlist curr_kver="$(uname -r)"
|
local boot_imglist boot_dirlist boot_initrdlist curr_kver="$(uname -r)"
|
||||||
local machine_id
|
local machine_id
|
||||||
|
|
||||||
if [ -z "$KDUMP_KERNELVER"]; then
|
if [ -z "$KDUMP_KERNELVER" ]; then
|
||||||
KDUMP_KERNELVER="$(uname -r)"
|
KDUMP_KERNELVER="$(uname -r)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user