From b57b206d621f8b4f5e50bd082afbf91013bbed52 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Nov 09 2022 07:57:28 +0000 Subject: lvm.conf should be check modified if lvm2 thinp enabled resolves: bz2083475 upstream: fedora conflict: none commit 10ca970940f0d8f4edc29737eba1968526182f1e Author: Tao Liu Date: Sat Oct 8 15:41:40 2022 +0800 lvm.conf should be check modified if lvm2 thinp enabled lvm2 relies on /etc/lvm/lvm.conf to determine its behaviour. The important configs such as thin_pool_autoextend_threshold and thin_pool_autoextend_percent will be used during kdump in 2nd kernel. So if the file is modified, the initramfs should be rebuild to include the latest. Signed-off-by: Tao Liu Reviewed-by: Philipp Rudo Signed-off-by: Tao Liu --- diff --git a/kdump-lib-initramfs.sh b/kdump-lib-initramfs.sh index db501e9..b894507 100755 --- a/kdump-lib-initramfs.sh +++ b/kdump-lib-initramfs.sh @@ -7,6 +7,7 @@ DEFAULT_PATH="/var/crash/" KDUMP_CONFIG_FILE="/etc/kdump.conf" FENCE_KDUMP_CONFIG_FILE="/etc/sysconfig/fence_kdump" FENCE_KDUMP_SEND="/usr/libexec/fence_kdump_send" +LVM_CONF="/etc/lvm/lvm.conf" # Read kdump config in well formated style kdump_read_conf() diff --git a/kdumpctl b/kdumpctl index fcbf899..35b4fd1 100755 --- a/kdumpctl +++ b/kdumpctl @@ -387,6 +387,7 @@ check_files_modified() # HOOKS is mandatory and need to check the modification time files="$files $HOOKS" + is_lvm2_thinp_dump_target && files="$files $LVM_CONF" check_exist "$files" && check_executable "$EXTRA_BINS" || return 2 for file in $files; do