From 8ce1f3c1dfbdb80e19e2c1de8f9ed6605fcf462e Mon Sep 17 00:00:00 2001 From: Pingfan Liu Date: Jun 25 2021 03:39:31 +0000 Subject: kdump-lib.sh: fix a warning in prepare_kdump_bootinfo() Resolves: bz1968374 Upstream: Fedora Conflict: None commit 39a642b66b2b4341a1345b63c5731e4ab90ad1b5 Author: Hari Bathini 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 Acked-by: Kairui Song Signed-off-by: Pingfan Liu --- diff --git a/kdump-lib.sh b/kdump-lib.sh index 49df354..c2f9c0e 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -741,7 +741,7 @@ prepare_kdump_bootinfo() local boot_imglist boot_dirlist boot_initrdlist curr_kver="$(uname -r)" local machine_id - if [ -z "$KDUMP_KERNELVER"]; then + if [ -z "$KDUMP_KERNELVER" ]; then KDUMP_KERNELVER="$(uname -r)" fi