[PATCH] Iterate /sys/bus/ccwgroup/devices to tell if we should set up rd.znet
by Coiby Xu
This patch fixes bz1941106 and bz1941905 which passed empty rd.znet to the
kernel command line in the following cases,
- The IBM (Z15) KVM guest uses virtio for all devices including network
device, so there is no znet device for IBM KVM guest. So we can't
assume a s390x machine always has a znet device.
- When a bridged network is used, kexec-tools tries to obtain the znet
configuration from the ifcfg script of the bridged network rather than
from the ifcfg script of znet device.
We can iterate /sys/bus/ccwgroup/devices to tell if there if there is
a znet network device. By getting an ifname from znet, we can also avoid
mistaking the slave netdev as a znet network device in a bridged network
or bonded network.
Note: This patch also assumes there is only one znet device as commit
7148c0a30dfc48221eadf255e8a89619f98a8752 ("add s390x netdev setup")
which greatly simplifies the code. According to IBM [1], there could be
more than znet devices for a z/VM system and a z/VM system may have a
non-znet network device like ConnectX. Since kdump_setup_znet was
introduced in 2012 and so far there is no known customer complaint that
invalidates this assumption I think it's safe to assume an IBM z/VM
system only has one znet device. Besides, there is no z/VM system found
on beaker to test the alternative scenarios.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1941905#c13
Signed-off-by: Coiby Xu <coxu(a)redhat.com>
---
dracut-module-setup.sh | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index a99a0ea..7d9344f 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -460,6 +460,34 @@ kdump_setup_vlan() {
fi
}
+# find online znet device
+# return ifname (_netdev)
+# code reaped from the list_configured function of
+# https://github.com/hreinecke/s390-tools/blob/master/zconf/znetconf
+find_online_znet_device() {
+ local CCWGROUPBUS_DEVICEDIR="/sys/bus/ccwgroup/devices"
+ local NETWORK_DEVICES d ifname ONLINE
+ NETWORK_DEVICES=$(find $CCWGROUPBUS_DEVICEDIR -type l)
+ for d in $NETWORK_DEVICES
+ do
+ read ONLINE < $d/online
+ if [ $ONLINE -ne 1 ]; then
+ continue
+ fi
+ # determine interface name, if there (only for qeth and if
+ # device is online)
+ if [ -f $d/if_name ]
+ then
+ read ifname < $d/if_name
+ elif [ -d $d/net ]
+ then
+ ifname=$(ls $d/net/)
+ fi
+ [ -n "$ifname" ] && break
+ done
+ echo -n "$ifname"
+}
+
# setup s390 znet cmdline
# $1: netdev (ifname)
# $2: nmcli connection show output
@@ -526,6 +554,7 @@ kdump_get_remote_ip()
kdump_install_net() {
local _destaddr _srcaddr _route _netdev _nm_show_cmd kdumpnic
local _static _proto _ip_conf _ip_opts _ifname_opts
+ local _znet_netdev _nm_show_cmd_znet
_destaddr=$(kdump_get_remote_ip $1)
_route=$(kdump_get_ip_route $_destaddr)
@@ -535,8 +564,10 @@ kdump_install_net() {
_netmac=$(kdump_get_mac_addr $_netdev)
kdumpnic=$(kdump_setup_ifname $_netdev)
- if [ "$(uname -m)" = "s390x" ]; then
- $(kdump_setup_znet "$_netdev" "$_nm_show_cmd")
+ _znet_netdev=$(find_online_znet_device)
+ if [[ -n "$_znet_netdev" ]]; then
+ _nm_show_cmd_znet=$(get_nmcli_connection_show_cmd_by_ifname "$_znet_netdev")
+ $(kdump_setup_znet "$_netdev" "$_nm_show_cmd_znet")
if [[ $? != 0 ]]; then
derror "Failed to set up znet"
exit 1
--
2.31.1
2 years, 11 months
[PATCH v2 0/7] Set up kdump network by "nmcli --get-values"
by Coiby Xu
ifcfg scripts are deprecated. kexec-tools still set up network
based on ifcfg scripts which lead to the issues like [1] [2].
We can get network configuration including dns, bond and znet by
parsing nmcli output instead. Another benefit is we could potentially
avoid subtle bugs caused by namespace pollution because of sourcing
ifcfg scripts.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1919052
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1933679
v1 -> v2:
- Use "nmcli --get-values" to extract the value by filed directly [Kairui]
- Keep compatibility with network scripts [Kairui]
- kdumpctl will exit when failing to set up znet or bond cmdline
- Warn the user when network scripts are used
dracut-module-setup.sh | 105 +++++++++++++++++++++++++++++++----------
kdump-lib.sh | 48 +++++++++++++++++++
2 files changed, 128 insertions(+), 25 deletions(-)
--
2.31.0
2 years, 11 months
[PATCH] Disable CMA in kdump 2nd kernel
by Tao Liu
kexec-tools needs to disable CMA for kdump kernel cmdline,
otherwise kdump kernel may run out of memory.
This patch strips the inherited cma=, hugetlb_cma= cmd
line from 1st kernel, and sets to be 0 for 2nd kernel.
Signed-off-by: Tao Liu <ltao(a)redhat.com>
---
kdump.sysconfig | 4 ++--
kdump.sysconfig.aarch64 | 4 ++--
kdump.sysconfig.i386 | 4 ++--
kdump.sysconfig.ppc64 | 4 ++--
kdump.sysconfig.ppc64le | 4 ++--
kdump.sysconfig.s390x | 4 ++--
kdump.sysconfig.x86_64 | 4 ++--
7 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/kdump.sysconfig b/kdump.sysconfig
index 30f0c63..70ebf04 100644
--- a/kdump.sysconfig
+++ b/kdump.sysconfig
@@ -17,11 +17,11 @@ KDUMP_COMMANDLINE=""
# This variable lets us remove arguments from the current kdump commandline
# as taken from either KDUMP_COMMANDLINE above, or from /proc/cmdline
# NOTE: some arguments such as crashkernel will always be removed
-KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb"
+KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb cma hugetlb_cma"
# This variable lets us append arguments to the current kdump commandline
# after processed by KDUMP_COMMANDLINE_REMOVE
-KDUMP_COMMANDLINE_APPEND="irqpoll maxcpus=1 reset_devices novmcoredd"
+KDUMP_COMMANDLINE_APPEND="irqpoll maxcpus=1 reset_devices novmcoredd cma=0 hugetlb_cma=0"
# Any additional kexec arguments required. In most situations, this should
# be left empty
diff --git a/kdump.sysconfig.aarch64 b/kdump.sysconfig.aarch64
index 6f7830a..fedd3bc 100644
--- a/kdump.sysconfig.aarch64
+++ b/kdump.sysconfig.aarch64
@@ -17,11 +17,11 @@ KDUMP_COMMANDLINE=""
# This variable lets us remove arguments from the current kdump commandline
# as taken from either KDUMP_COMMANDLINE above, or from /proc/cmdline
# NOTE: some arguments such as crashkernel will always be removed
-KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb"
+KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb cma hugetlb_cma"
# This variable lets us append arguments to the current kdump commandline
# after processed by KDUMP_COMMANDLINE_REMOVE
-KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices cgroup_disable=memory udev.children-max=2 panic=10 swiotlb=noforce novmcoredd"
+KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices cgroup_disable=memory udev.children-max=2 panic=10 swiotlb=noforce novmcoredd cma=0 hugetlb_cma=0"
# Any additional kexec arguments required. In most situations, this should
# be left empty
diff --git a/kdump.sysconfig.i386 b/kdump.sysconfig.i386
index d2de7d6..7e18c1c 100644
--- a/kdump.sysconfig.i386
+++ b/kdump.sysconfig.i386
@@ -17,11 +17,11 @@ KDUMP_COMMANDLINE=""
# This variable lets us remove arguments from the current kdump commandline
# as taken from either KDUMP_COMMANDLINE above, or from /proc/cmdline
# NOTE: some arguments such as crashkernel will always be removed
-KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb"
+KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb cma hugetlb_cma"
# This variable lets us append arguments to the current kdump commandline
# after processed by KDUMP_COMMANDLINE_REMOVE
-KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices numa=off udev.children-max=2 panic=10 transparent_hugepage=never novmcoredd"
+KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices numa=off udev.children-max=2 panic=10 transparent_hugepage=never novmcoredd cma=0 hugetlb_cma=0"
# Any additional kexec arguments required. In most situations, this should
# be left empty
diff --git a/kdump.sysconfig.ppc64 b/kdump.sysconfig.ppc64
index 39b69bb..ebb22f6 100644
--- a/kdump.sysconfig.ppc64
+++ b/kdump.sysconfig.ppc64
@@ -17,11 +17,11 @@ KDUMP_COMMANDLINE=""
# This variable lets us remove arguments from the current kdump commandline
# as taken from either KDUMP_COMMANDLINE above, or from /proc/cmdline
# NOTE: some arguments such as crashkernel will always be removed
-KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb"
+KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb hugetlb_cma"
# This variable lets us append arguments to the current kdump commandline
# after processed by KDUMP_COMMANDLINE_REMOVE
-KDUMP_COMMANDLINE_APPEND="irqpoll maxcpus=1 noirqdistrib reset_devices cgroup_disable=memory numa=off udev.children-max=2 ehea.use_mcs=0 panic=10 kvm_cma_resv_ratio=0 transparent_hugepage=never novmcoredd"
+KDUMP_COMMANDLINE_APPEND="irqpoll maxcpus=1 noirqdistrib reset_devices cgroup_disable=memory numa=off udev.children-max=2 ehea.use_mcs=0 panic=10 kvm_cma_resv_ratio=0 transparent_hugepage=never novmcoredd hugetlb_cma=0"
# Any additional kexec arguments required. In most situations, this should
# be left empty
diff --git a/kdump.sysconfig.ppc64le b/kdump.sysconfig.ppc64le
index 39b69bb..ebb22f6 100644
--- a/kdump.sysconfig.ppc64le
+++ b/kdump.sysconfig.ppc64le
@@ -17,11 +17,11 @@ KDUMP_COMMANDLINE=""
# This variable lets us remove arguments from the current kdump commandline
# as taken from either KDUMP_COMMANDLINE above, or from /proc/cmdline
# NOTE: some arguments such as crashkernel will always be removed
-KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb"
+KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb hugetlb_cma"
# This variable lets us append arguments to the current kdump commandline
# after processed by KDUMP_COMMANDLINE_REMOVE
-KDUMP_COMMANDLINE_APPEND="irqpoll maxcpus=1 noirqdistrib reset_devices cgroup_disable=memory numa=off udev.children-max=2 ehea.use_mcs=0 panic=10 kvm_cma_resv_ratio=0 transparent_hugepage=never novmcoredd"
+KDUMP_COMMANDLINE_APPEND="irqpoll maxcpus=1 noirqdistrib reset_devices cgroup_disable=memory numa=off udev.children-max=2 ehea.use_mcs=0 panic=10 kvm_cma_resv_ratio=0 transparent_hugepage=never novmcoredd hugetlb_cma=0"
# Any additional kexec arguments required. In most situations, this should
# be left empty
diff --git a/kdump.sysconfig.s390x b/kdump.sysconfig.s390x
index f9218e5..439e462 100644
--- a/kdump.sysconfig.s390x
+++ b/kdump.sysconfig.s390x
@@ -17,11 +17,11 @@ KDUMP_COMMANDLINE=""
# This variable lets us remove arguments from the current kdump commandline
# as taken from either KDUMP_COMMANDLINE above, or from /proc/cmdline
# NOTE: some arguments such as crashkernel will always be removed
-KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb"
+KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb vmcp_cma cma hugetlb_cma"
# This variable lets us append arguments to the current kdump commandline
# after processed by KDUMP_COMMANDLINE_REMOVE
-KDUMP_COMMANDLINE_APPEND="nr_cpus=1 cgroup_disable=memory numa=off udev.children-max=2 panic=10 transparent_hugepage=never novmcoredd"
+KDUMP_COMMANDLINE_APPEND="nr_cpus=1 cgroup_disable=memory numa=off udev.children-max=2 panic=10 transparent_hugepage=never novmcoredd vmcp_cma=0 cma=0 hugetlb_cma=0"
# Any additional /sbin/mkdumprd arguments required.
MKDUMPRD_ARGS=""
diff --git a/kdump.sysconfig.x86_64 b/kdump.sysconfig.x86_64
index 0521893..1285506 100644
--- a/kdump.sysconfig.x86_64
+++ b/kdump.sysconfig.x86_64
@@ -17,11 +17,11 @@ KDUMP_COMMANDLINE=""
# This variable lets us remove arguments from the current kdump commandline
# as taken from either KDUMP_COMMANDLINE above, or from /proc/cmdline
# NOTE: some arguments such as crashkernel will always be removed
-KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb"
+KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swiotlb cma hugetlb_cma"
# This variable lets us append arguments to the current kdump commandline
# after processed by KDUMP_COMMANDLINE_REMOVE
-KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 acpi_no_memhotplug transparent_hugepage=never nokaslr hest_disable novmcoredd"
+KDUMP_COMMANDLINE_APPEND="irqpoll nr_cpus=1 reset_devices cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 acpi_no_memhotplug transparent_hugepage=never nokaslr hest_disable novmcoredd cma=0 hugetlb_cma=0"
# Any additional kexec arguments required. In most situations, this should
# be left empty
--
2.29.2
2 years, 11 months
Re: [PATCH 0/2] Update kexec-tools and makedumpfile to latest
by Tao Liu
On Wed, May 12, 2021 at 06:06:11AM +0000, HAGIO KAZUHITO(萩尾 一仁) wrote:
> -----Original Message-----
> > This patch set updates makedumpfile to latest upstream(a8250642a4ff50a2),
> > and kexec-tools to v2.0.22.
> >
> > Tao Liu (2):
> > Update makedumpfile to latest upstream(a8250642a4ff50a2)
>
> Hi,
>
> FYI, I think I can release makedumpfile-1.6.9 tomorrow.
Hello Kazu,
Thanks for the info. I can wait and submit a new update patch when new
release of makedumpfile come.
Thanks,
Tao Liu
>
> Thanks,
> Kazu
>
>
2 years, 11 months
[PATCH 0/2] Update kexec-tools and makedumpfile to latest
by Tao Liu
This patch set updates makedumpfile to latest upstream(a8250642a4ff50a2),
and kexec-tools to v2.0.22.
Tao Liu (2):
Update makedumpfile to latest upstream(a8250642a4ff50a2)
Update kexec-tools to 2.0.22
...edumpfile-Add-initial-mips64-support.patch | 246 ++++++++++++++++++
...kefile-Fix-a-compile-error-on-Debian.patch | 31 +++
...mcoreinfo-note-in-proc-kcore-for-mem.patch | 146 +++++++++++
...Make-use-of-NUMBER-VA_BITS-in-vmcore.patch | 101 +++++++
...support-flipped-VA-and-52-bit-kernel.patch | 245 +++++++++++++++++
...21-makedumpfile-fix-build-on-sparc64.patch | 33 +++
...rieve-MAX_PHYSMEM_BITS-from-vmcorein.patch | 42 +++
...fix-a-use-after-free-bug-in-e-option.patch | 42 +++
kexec-tools.spec | 20 +-
sources | 2 +-
10 files changed, 905 insertions(+), 3 deletions(-)
create mode 100644 kexec-tools-2.0.21-makedumpfile-Add-initial-mips64-support.patch
create mode 100644 kexec-tools-2.0.21-makedumpfile-Makefile-Fix-a-compile-error-on-Debian.patch
create mode 100644 kexec-tools-2.0.21-makedumpfile-Use-vmcoreinfo-note-in-proc-kcore-for-mem.patch
create mode 100644 kexec-tools-2.0.21-makedumpfile-arm64-Make-use-of-NUMBER-VA_BITS-in-vmcore.patch
create mode 100644 kexec-tools-2.0.21-makedumpfile-arm64-support-flipped-VA-and-52-bit-kernel.patch
create mode 100644 kexec-tools-2.0.21-makedumpfile-fix-build-on-sparc64.patch
create mode 100644 kexec-tools-2.0.21-makedumpfile-mips64-Retrieve-MAX_PHYSMEM_BITS-from-vmcorein.patch
create mode 100644 kexec-tools-2.0.21-makedumpfile-x86_64-fix-a-use-after-free-bug-in-e-option.patch
--
2.29.2
2 years, 11 months
[PATCH] Add a new kdump.conf option: compress_args
by Kairui Song
Allow user to tune between a better compression ratio or better initramfs
build speed. And provide two example for user to use.
If compress_args is not set, then try to use the compression arguments
with highest compression ratio.
Test result with given examples:
- With `compress_args xz -Xbcj x86 -Xdict-size 100%`
# time kdumpctl rebuild
kdump: Rebuilding /boot/initramfs-4.18.0-287.el8.dt4.x86_64kdump.img
real 0m29.896s
user 0m37.784s
sys 0m5.725s
Image size:
16441344 May 9 07:44 squash-root.img
- With `compress_args gzip -Xcompression-level 1`
# time kdumpctl rebuild
kdump: Rebuilding /boot/initramfs-4.18.0-287.el8.dt4.x86_64kdump.img
real 0m9.098s
user 0m4.373s
sys 0m4.508s
Image size:
21757952 May 9 07:45 squash-root.img
Signed-off-by: Kairui Song <kasong(a)redhat.com>
---
kdump.conf | 13 +++++++++++++
kdumpctl | 2 +-
mkdumprd | 29 +++++++++++++++++++++++++++++
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/kdump.conf b/kdump.conf
index dea2e94..d86bc44 100644
--- a/kdump.conf
+++ b/kdump.conf
@@ -159,6 +159,18 @@
# - List of cluster node(s) except localhost, separated by spaces,
# to send fence_kdump notifications to.
# (this option is mandatory to enable fence_kdump).
+# compress_args <compressor and args>
+# - How the kdump initramfs should be compressed.
+# Kdump compresses the initramfs into a squash image to same
+# crashkernel runtime memory. More effective compression will
+# save more memory but make initramfs compression slower.
+#
+# If not set, kdump will prefer to trade initramfs build time for a
+# higher compression ratio.
+#
+# Some example args:
+# - For better compression ratio (on x86): "xz -Xbcj x86 -Xdict-size 100%"
+# - For faster initramfs building: "gzip -Xcompression-level 1"
#
#raw /dev/vg/lv_kdump
@@ -183,3 +195,4 @@ core_collector makedumpfile -l --message-level 7 -d 31
#dracut_args --omit-drivers "cfg80211 snd" --add-drivers "ext2 ext3"
#fence_kdump_args -p 7410 -f auto -c 0 -i 10
#fence_kdump_nodes node1 node2
+#compress_args xz
diff --git a/kdumpctl b/kdumpctl
index 009d259..15dbfbe 100755
--- a/kdumpctl
+++ b/kdumpctl
@@ -257,7 +257,7 @@ check_config()
ext[234]|minix|btrfs|xfs|nfs|ssh)
config_opt=_target
;;
- sshkey|path|core_collector|kdump_post|kdump_pre|extra_bins|extra_modules|failure_action|default|final_action|force_rebuild|force_no_rebuild|fence_kdump_args|fence_kdump_nodes)
+ sshkey|path|core_collector|kdump_post|kdump_pre|extra_bins|extra_modules|failure_action|default|final_action|force_rebuild|force_no_rebuild|fence_kdump_args|fence_kdump_nodes|compress_args)
;;
net|options|link_delay|disk_timeout|debug_mem_level|blacklist)
derror "Deprecated kdump config option: $config_opt. Refer to kdump.conf manpage for alternatives."
diff --git a/mkdumprd b/mkdumprd
index 50ebdc8..54c8eef 100644
--- a/mkdumprd
+++ b/mkdumprd
@@ -30,6 +30,7 @@ OVERRIDE_RESETTABLE=0
extra_modules=""
dracut_args="--add kdumpbase --quiet --hostonly --hostonly-cmdline --hostonly-i18n --hostonly-mode strict -o \"plymouth dash resume ifcfg earlykdump\""
+compress_args=""
readonly MKDUMPRD_TMPDIR="$(mktemp -d -t mkdumprd.XXXXXX)"
[ -d "$MKDUMPRD_TMPDIR" ] || perror_exit "dracut: mktemp -p -d -t dracut.XXXXXX failed."
@@ -460,6 +461,9 @@ do
dracut_args)
add_dracut_arg $config_val
;;
+ compress_args)
+ compress_args="$config_val"
+ ;;
*)
;;
esac
@@ -480,6 +484,31 @@ if ! is_fadump_capable; then
add_dracut_arg "--no-hostonly-default-device"
fi
+if [[ -z $compress_args ]]; then
+ case $(uname -m) in
+ i686|i386|x86_64)
+ compress_args="xz -Xbcj x86"
+ ;;
+ aarch*|armv*)
+ compress_args="xz -Xbcj arm"
+ ;;
+ ppc*)
+ compress_args="xz -Xbcj powerpc"
+ ;;
+ sparc*)
+ compress_args="xz -Xbcj sparc"
+ ;;
+ ia64)
+ compress_args="xz -Xbcj ia64"
+ ;;
+ *)
+ compress_args="xz"
+ ;;
+ esac
+fi
+
+add_dracut_arg "--comp \"$compress_args\""
+
echo "$dracut_args $@" | xargs dracut
_rc=$?
--
2.30.2
2 years, 11 months
[PATCH] Fix incorrect file permissions of vmcore-dmesg-incomplete.txt
by Tao Liu
vmcore-dmesg-incomplete.txt is generated by shell redirection,
which taking the default umask value. When dmesg collector exits
with non-zero, the file will exist and anyone can have access to
it.
This patch fixed the issue by chmod the file, making it accessible
only to its owner.
Signed-off-by: Tao Liu <ltao(a)redhat.com>
---
kdump-lib-initramfs.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kdump-lib-initramfs.sh b/kdump-lib-initramfs.sh
index 15bbd85..d0d124f 100755
--- a/kdump-lib-initramfs.sh
+++ b/kdump-lib-initramfs.sh
@@ -188,6 +188,9 @@ save_vmcore_dmesg_fs() {
sync
dinfo "saving vmcore-dmesg.txt complete"
else
+ if [ -f ${_path}/vmcore-dmesg-incomplete.txt ]; then
+ chmod 600 ${_path}/vmcore-dmesg-incomplete.txt
+ fi
derror "saving vmcore-dmesg.txt failed"
fi
}
--
2.29.2
2 years, 11 months
[PATCH v2 0/2] Fixing the bug kexec-tools generates rd.route for eth0 instead of kdump-eth0
by Coiby Xu
The main goal of this patch set is to fix bz1854037 which happens
because rd.route doesn't use the name from kdump_setup_ifname which
in turn causes NetworkManger to get an IP for the slave NIC and then
time out. Meanwhile, I think it's better to avoid repeatedly calling
kdump_setup_ifname.
v1->v2:
- pass kdumpnic to kdump_handle_mulitpath_route [Kairui]
- drop the patch "pass kdumpnic to kdump_setup_/bond/bridge/vlan
directly"
- fix the explanation why bz1854037 occurs
Coiby Xu (2):
get kdump ifname once in kdump_install_net
rd.route should use the name from kdump_setup_ifname
dracut-module-setup.sh | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
--
2.31.1
2 years, 11 months