## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # kdump-utils has no debug source %global debug_package %{nil} Name: kdump-utils Version: 1.0.60 Release: %autorelease Summary: Kernel crash dump collection utilities License: GPL-2.0-only URL: https://github.com/rhkdump/kdump-utils Source0: https://github.com/rhkdump/kdump-utils/archive/v%{version}/%{name}-%{version}.tar.gz %ifarch ppc64 ppc64le Requires(post): servicelog Recommends: keyutils %endif Requires(pre): coreutils Requires(pre): sed Requires: kexec-tools >= 2.0.28-8 Requires: makedumpfile Requires: dracut >= 058 Requires: dracut-network >= 058 Requires: dracut-squash >= 058 Requires: ethtool Requires: gawk Requires: util-linux Recommends: grubby Recommends: hostname BuildRequires: make BuildRequires: systemd-rpm-macros %ifnarch s390x Requires: systemd-udev%{?_isa} %endif %description kdump-utils is responsible for collecting the crash kernel dump. It builds and loads the kdump initramfs so when a kernel crashes, the system will boot the kdump kernel and initramfs to save the collected crash kernel dump to specified target. %prep %autosetup -p1 %install %make_install sbindir=%_sbindir %post # kdumpctl will only set up default crashkernel when kdump.service is enabled %systemd_post kdump.service touch /etc/kdump.conf %ifarch ppc64 ppc64le servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh 2>/dev/null servicelog_notify --add --command=/usr/lib/kdump/kdump-migrate-action.sh --match='refcode="#MIGRATE" and serviceable=0' --type=EVENT --method=pairs_stdin >/dev/null %endif # RPM scriptlet should always return 0. Otherwise it can break # installs/upgrades/erases. : %postun %systemd_postun_with_restart kdump.service %preun %ifarch ppc64 ppc64le servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh >/dev/null %endif %systemd_preun kdump.service %posttrans # Try to reset kernel crashkernel value to new default value or set up # crasherkernel value for new install # # Note # 1. Skip ostree systems as they are not supported. # 2. For Fedora 36 and RHEL9, "[ $1 == 1 ]" in posttrans scriptlet means both install and upgrade; # For Fedora > 36, "[ $1 == 1 ]" only means install and "[ $1 == 2 ]" means upgrade # 3. osbuild depends on "kdumpctl _reset-crashkernel-for-installed_kernel" to set up crashkernel if [ ! -f /run/ostree-booted ] && [ $1 == 1 -o $1 == 2 ]; then kdumpctl _reset-crashkernel-after-update : fi %files %ifarch ppc64 ppc64le %{_sbindir}/mkfadumprd %{_prefix}/lib/kernel/install.d/60-fadump.install %endif %{_bindir}/kdumpctl %{_sbindir}/mkdumprd %{_prefix}/lib/kdump %config(noreplace,missingok) %{_sysconfdir}/sysconfig/kdump %config(noreplace,missingok) %verify(not mtime) %{_sysconfdir}/kdump.conf %ifnarch s390x %{_udevrulesdir} %{_udevrulesdir}/../kdump-udev-throttler %endif %{_prefix}/lib/dracut/modules.d/* %dir %{_localstatedir}/crash %dir %{_sysconfdir}/kdump %dir %{_sysconfdir}/kdump/pre.d %dir %{_sysconfdir}/kdump/post.d %dir %{_sharedstatedir}/kdump %{_mandir}/man8/kdumpctl.8* %{_mandir}/man8/mkdumprd.8* %{_mandir}/man5/kdump.conf.5* %{_unitdir}/kdump.service %{_prefix}/lib/systemd/system-generators/kdump-dep-generator.sh %{_prefix}/lib/kernel/install.d/60-kdump.install %{_prefix}/lib/kernel/install.d/92-crashkernel.install %license COPYING %doc kexec-kdump-howto.txt %doc early-kdump-howto.txt %doc fadump-howto.txt %doc kdump-in-cluster-environment.txt %doc live-image-kdump-howto.txt %doc crashkernel-howto.txt %doc supported-kdump-targets.txt %changelog ## START: Generated by rpmautospec * Wed Dec 24 2025 Coiby Xu - 1.0.60-1 - Uncommitted changes * Wed Dec 24 2025 Coiby Xu - 1.0.44-157 - Drop the x86_64 limit for luks * Mon Dec 22 2025 Baoquan He - 1.0.44-156 - kexec-kdump-howto.txt: update paragraphs related to disable_cpu_apicid * Mon Dec 15 2025 Coiby Xu - 1.0.44-155 - tests: Enable local and nfs test plans for CoreOS * Mon Dec 15 2025 Coiby Xu - 1.0.44-154 - kdumpctl: ignore --kernel for OSTree systems when resetting crashkernel - -kernel has no meaning for OSTree systems. Simply ignore it. With this change, kdump/config-default-crashkernel test from kernel-tests which calls "kdumpctl reset-crashkernel --kernel=ALL" can work. * Mon Dec 15 2025 Coiby Xu - 1.0.44-153 - tests: Disable nfs_ovs test plan on F44 for packit * Mon Dec 15 2025 Coiby Xu - 1.0.44-152 - tests: Avoid using Xen guests * Mon Dec 15 2025 Coiby Xu - 1.0.44-151 - tests: Enable packit tests against rawhide and aarch64 * Mon Dec 15 2025 Coiby Xu - 1.0.44-150 - tests: fix test plan failures on rawhide * Mon Dec 15 2025 Coiby Xu - 1.0.44-149 - tests: only run lvm2_thinp test plan on self-hosted runner * Mon Dec 15 2025 Coiby Xu - 1.0.44-148 - tests: Use config-earlykdump test from kernel-tests * Mon Dec 15 2025 Coiby Xu - 1.0.44-147 - Try to bring up the most recently used NetworkManager connection profiles * Fri Dec 05 2025 Sourabh Jain - 1.0.44-146 - powerpc: Set nr_cpus=16 for kdump kernel * Fri Dec 05 2025 Sourabh Jain - 1.0.44-145 - powerpc: consider CPU count while calculating crashkernel value * Fri Dec 05 2025 Harshvardhan Jha - 1.0.44-144 - Add persisent device if FIPS is enabled * Thu Dec 04 2025 Lichen Liu - 1.0.44-143 - kdumpctl: check force[_no]_rebuild when do estimate * Thu Dec 04 2025 Pingfan Liu - 1.0.44-142 - kdump.sh: Skip num-threads when -E and -F option is present * Thu Dec 04 2025 Pingfan Liu - 1.0.44-141 - kdump.sh: Centralize the num-threads sub-option handling * Thu Dec 04 2025 Pingfan Liu - 1.0.44-140 - kdump.sh: Centralize the -F suboption handling * Tue Dec 02 2025 Philipp Rudo - 1.0.44-139 - unit tests: extend kdump-lib-initramfs test cases * Tue Dec 02 2025 Philipp Rudo - 1.0.44-138 - kdump-lib-initramfs: rewrite kdump_get_conf_val * Tue Dec 02 2025 Lichen Liu - 1.0.44-137 - Revert "Strip surrounding quotes from configuration values" * Tue Nov 25 2025 Tao Liu - 1.0.44-136 - Add timeout for nfs mount within kdumpctl & mkdumprd * Tue Nov 25 2025 Coiby Xu - 1.0.44-135 - gen-kdump-sysconfig.sh: fix a shfmt error * Tue Nov 25 2025 Coiby Xu - 1.0.44-134 - Don't enforce altshfmt for now * Tue Nov 25 2025 Coiby Xu - 1.0.44-133 - Add static-analysis target to Makefile * Tue Nov 25 2025 Coiby Xu - 1.0.44-132 - editorconfig: default to bash * Tue Nov 25 2025 Coiby Xu - 1.0.44-131 - Add altshfmt support to format-check target * Tue Nov 25 2025 Coiby Xu - 1.0.44-130 - Add format-check target to Makefile * Fri Nov 14 2025 Lichen Liu - 1.0.44-129 - unit tests: Add cases for btrfs subvol * Fri Nov 14 2025 Lichen Liu - 1.0.44-128 - mkdumprd: basic support for btrfs subvol * Fri Nov 07 2025 Coiby Xu - 1.0.44-127 - Allow "sudo kdumpctl" for LUKS dump target * Fri Nov 07 2025 Coiby Xu - 1.0.44-126 - Restore SELinux label of crypttab file * Fri Nov 07 2025 Coiby Xu - 1.0.44-125 - Allow kdump.service to access LUKS volume keys * Thu Nov 06 2025 Tao Liu - 1.0.44-124 - kdump test: Let "kdumpctl start" to output the kdump test status * Thu Nov 06 2025 Tao Liu - 1.0.44-123 - kdump test: reword the misleading test result * Fri Oct 17 2025 Lichen Liu - 1.0.44-122 - unit tests: Add case for quoted configuration values * Fri Oct 17 2025 Lichen Liu - 1.0.44-121 - Strip surrounding quotes from configuration values * Thu Oct 16 2025 Coiby Xu - 1.0.44-120 - refactor(gen-kdump-sysconfig): Use bash heredoc and associative arrays * Sat Oct 11 2025 Li Tian - 1.0.44-119 - kdump-lib: use EFI var to find UKI * Thu Oct 09 2025 Philipp Rudo - 1.0.44-118 - spec: drop dependency for binutils * Thu Oct 09 2025 Philipp Rudo - 1.0.44-117 - kdump-lib: always disable systemd-gpt-auto-generator * Thu Oct 09 2025 Philipp Rudo - 1.0.44-116 - kdumpctl: add comments to different initrd variables * Thu Oct 09 2025 Philipp Rudo - 1.0.44-115 - kdumpctl: clean up {backup,restore}_default_initrd * Mon Sep 29 2025 Coiby Xu - 1.0.44-114 - Wait for LUKS configfs API to be ready * Mon Sep 29 2025 Coiby Xu - 1.0.44-113 - Change LUKS volume key prefix to kdump-cryptsetup:vk- * Mon Sep 29 2025 Coiby Xu - 1.0.44-112 - Remove unused LUKS volume keys from keyring * Mon Sep 29 2025 Coiby Xu - 1.0.44-111 - Limit LUKS support to x86_64 * Mon Sep 29 2025 Coiby Xu - 1.0.44-110 - Add kdumpctl setup-crypttab subcommand * Mon Sep 29 2025 Coiby Xu - 1.0.44-109 - Return LUKS devices in the form of UUIDs directly * Fri Sep 12 2025 Coiby Xu - 1.0.44-108 - Remove add-reviewed-by-action Github Action * Fri Sep 05 2025 Lichen Liu - 1.0.44-107 - unit tests: add test cases for 1 kernel with multiple grub entries * Fri Sep 05 2025 Lichen Liu - 1.0.44-106 - kdumpctl: update the _has_changed message * Fri Sep 05 2025 Lichen Liu - 1.0.44-105 - kdumpctl: update crashkernel by grub entry index instead of kernel path * Fri Sep 05 2025 Lichen Liu - 1.0.44-104 - kdumpctl: check the return value of get_dump_mode_by_kernel * Fri Sep 05 2025 Lichen Liu - 1.0.44-103 - kdumpctl: Fix return value of get_dump_mode_by_kernel * Mon Sep 01 2025 Sourabh Jain - 1.0.44-102 - Forward core collector's stdout and stderr to /dev/console * Thu Aug 21 2025 Coiby Xu - 1.0.44-101 - Fix SC2181 issues in kdump-udev-throttler * Thu Aug 21 2025 Coiby Xu - 1.0.44-100 - LUKS: make /usr writable * Thu Aug 21 2025 Coiby Xu - 1.0.44-99 - Address CPU/memory hot plugging for kdump LUKS support * Thu Aug 21 2025 Coiby Xu - 1.0.44-98 - shfmt kdump-udev-throttler * Thu Aug 21 2025 Coiby Xu - 1.0.44-97 - Use cryptsetup --link-vk-to-keyring to save volume keys * Thu Aug 21 2025 Coiby Xu - 1.0.44-96 - Support dumping to a LUKS-encrypted target * Thu Aug 21 2025 Coiby Xu - 1.0.44-95 - Add a helper function to get uuid by MAJ:MIN * Thu Aug 21 2025 Lichen Liu - 1.0.44-94 - kdumpctl: warn when reset crashkernel for low memory systems * Tue Aug 19 2025 Li Tian - 1.0.44-93 - 60-kdump.install: Skip removing initrd when multiple BLS types exist * Thu Aug 14 2025 Baoquan He - 1.0.44-92 - sysconfig: disable kfence in kdump kernel * Thu Aug 07 2025 Lichen Liu - 1.0.44-91 - kdumpctl: improve do_estimate by calculating initramfs 3 times. * Thu Aug 07 2025 Lichen Liu - 1.0.44-90 - kdumpctl: Fix a typo * Wed Aug 06 2025 Pingfan Liu - 1.0.44-89 - UKI: remove the extraction of kernel from UKI image * Mon Jul 28 2025 Coiby Xu - 1.0.44-88 - Support dumping to NVMe/TCP configured using NVMe Boot Firmware Table * Fri Jul 11 2025 Tao Liu - 1.0.44-87 - kdump test: output more useful info for users aware of * Thu Jul 10 2025 Baoquan He - 1.0.44-86 - sysconfig: disable kfence in kdump kernel * Thu Jul 10 2025 Coiby Xu - 1.0.44-85 - Fix the way to tell if there is a need to set up network * Thu Jul 10 2025 Coiby Xu - 1.0.44-84 - Eliminate shellcheck SC2153 warning * Thu Jul 10 2025 Coiby Xu - 1.0.44-83 - unit tests: fix SC2086 shellcheck warnings * Thu Jul 10 2025 Coiby Xu - 1.0.44-82 - unit tests: fix SC2154 shellcheck warnings * Thu Jul 10 2025 Coiby Xu - 1.0.44-81 - Add dependency on gawk * Thu Jul 10 2025 Coiby Xu - 1.0.44-80 - unit tests: skip SC2317 SC2288, SC2215 shellcheck tests * Thu Jul 10 2025 Coiby Xu - 1.0.44-79 - Eliminate shellcheck SC2317 warnings * Thu Jul 10 2025 Coiby Xu - 1.0.44-78 - Eliminate shellcheck SC2001 warning * Thu Jul 10 2025 Coiby Xu - 1.0.44-77 - Make kdump-lib-initramfs.sh fully POSIX-compatible * Thu Jul 10 2025 Coiby Xu - 1.0.44-76 - Fix shellcheck warning SC1091 * Thu Jul 10 2025 Coiby Xu - 1.0.44-75 - Eliminate shellcheck warning in spec/kdumpctl_general_spec.sh * Thu Jul 10 2025 Coiby Xu - 1.0.44-74 - Eliminate shellcheck warnings in kdump-lib.sh * Thu Jul 10 2025 Coiby Xu - 1.0.44-73 - Make kdump-logger.sh fully POSIX-compatible * Thu Jul 10 2025 Coiby Xu - 1.0.44-72 - Eliminate shellcheck SC2153 warnings * Thu Jul 10 2025 Coiby Xu - 1.0.44-71 - Eliminate shellcheck SC1004 warning * Thu Jul 10 2025 Coiby Xu - 1.0.44-70 - Add reason for disable shellcheck SC2154 warning * Thu Jul 10 2025 Coiby Xu - 1.0.44-69 - Eliminate shellcheck SC2181 warnings * Thu Jul 10 2025 Coiby Xu - 1.0.44-68 - Eliminate shellcheck SC2034 warnings * Thu Jul 10 2025 Coiby Xu - 1.0.44-67 - Eliminate shellcheck SC2086 warnings * Thu Jul 10 2025 Coiby Xu - 1.0.44-66 - use shfmt to format and simplify current code * Wed Jun 18 2025 Coiby Xu - 1.0.44-65 - Redirect error to null if /proc/sys/crypto/fips_enabled doesn't exist * Wed Jun 18 2025 Coiby Xu - 1.0.44-64 - unit tests: make sure root partition will be mounted to /sysroot * Wed Jun 18 2025 Coiby Xu - 1.0.44-63 - mkdumprd: mount the root partition when FIPS is enabled with no boot partition * Wed Jun 04 2025 Lichen Liu - 1.0.44-62 - mkdumprd: replace lz4hc with lzma for better compression in squash image * Fri May 30 2025 Coiby Xu - 1.0.44-61 - tests: add ssh, nfs, nfs over ovs bridge and local dumping plan to run kernel-tests * Fri May 30 2025 Coiby Xu - 1.0.44-60 - tests: let packit run kernel-tests in testing farm * Fri May 30 2025 Coiby Xu - 1.0.44-59 - tests: add kernel-tests NFS+FIPS test plan * Mon May 26 2025 Lichen Liu - 1.0.44-58 - kdumpctl: check and generate /etc/vconsole.conf * Thu May 08 2025 Coiby Xu - 1.0.44-57 - tests: add NFS over OVS bridge network * Thu May 08 2025 Coiby Xu - 1.0.44-56 - Bring up the network before Open vSwitch bridge * Thu May 08 2025 Coiby Xu - 1.0.44-55 - Revert "Support setting up Open vSwitch (Ovs) Bridge network" * Wed Mar 26 2025 Coiby Xu - 1.0.44-54 - s/kexec-tools/kdump-utils * Wed Mar 26 2025 Lichen Liu - 1.0.44-53 - 99-kdump.conf: Omit clevis related dracut modules * Fri Mar 14 2025 Lichen Liu - 1.0.44-52 - unit test: update test for get_system_size * Fri Mar 14 2025 Lichen Liu - 1.0.44-51 - kdump-lib.sh: rounded up the total_mem to 128M in get_system_size * Thu Mar 06 2025 Lichen Liu - 1.0.44-50 - kdump-lib.sh: Fix all 1G boundry to 2G * Thu Mar 06 2025 Lichen Liu - 1.0.44-49 - kdump-lib.sh: Adjust default crashkernel reservation for x86_64 and s390x * Wed Mar 05 2025 Coiby Xu - 1.0.44-48 - tests: disable ssh dumping test for rawhide * Wed Mar 05 2025 Coiby Xu - 1.0.44-47 - tests: enable tests against Fedora rawhide * Wed Mar 05 2025 Coiby Xu - 1.0.44-46 - tests: only wait 10s when checking vmcore * Wed Mar 05 2025 Coiby Xu - 1.0.44-45 - tests: enable local and nfs dumping tests conditionally * Thu Feb 20 2025 Coiby Xu - 1.0.44-44 - Check /proc/sys/crypto/fips_enabled to tell if FIPS has been enabled * Wed Feb 12 2025 Coiby Xu - 1.0.44-43 - tests: set up custom mirror before essential-requires * Tue Jan 21 2025 Lichen Liu - 1.0.44-42 - 99-kdump.conf: Omit hwdb dracut module * Wed Jan 15 2025 Lichen Liu - 1.0.44-41 - 99-kdump.conf: Omit nouveau and amdgpu module * Fri Jan 10 2025 Sourabh Jain - 1.0.44-40 - powerpc: fix early exit from udev on hotplug event for fadump * Wed Jan 08 2025 Coiby Xu - 1.0.44-39 - tests: fix occasional LVM2-thinp test failures * Thu Jan 02 2025 Coiby Xu - 1.0.44-38 - Fallback to get NIC driver by /sys/class/net/NIC/device/driver/module * Thu Dec 19 2024 Coiby Xu - 1.0.44-37 - tests: enable Github action * Thu Dec 19 2024 Coiby Xu - 1.0.44-36 - tests: add LVM2 thin provision dumping test plan * Thu Dec 19 2024 Coiby Xu - 1.0.44-35 - tests: add NFS early dumping test plan * Thu Dec 19 2024 Coiby Xu - 1.0.44-34 - tests: add SSH dumping test plan * Thu Dec 19 2024 Coiby Xu - 1.0.44-33 - tests: add local dumping test plan * Thu Dec 19 2024 Coiby Xu - 1.0.44-32 - tests: install a custom built kdump-utils RPM * Thu Dec 19 2024 Coiby Xu - 1.0.44-31 - tests: allow to use custom mirror * Thu Dec 19 2024 Coiby Xu - 1.0.44-30 - tests: set root password to make it easier to troubleshot test failures * Thu Dec 19 2024 Coiby Xu - 1.0.44-29 - tests: Don't compare vmcore-dmesg.txt for now * Thu Dec 19 2024 Coiby Xu - 1.0.44-28 - tests: add Test Management Tool kdump NFS tests * Thu Dec 19 2024 Coiby Xu - 1.0.44-27 - tests: remove old tests * Tue Dec 17 2024 Coiby Xu - 1.0.44-26 - Enable xtrace for mkdumprd when debug=1 * Tue Dec 17 2024 jbtrystram - 1.0.44-25 - CI: build coreOS with kdump RPM and run tests * Mon Dec 16 2024 Coiby Xu - 1.0.44-24 - Note user-specified crashkernel value will be overwritten by default value * Tue Dec 10 2024 Philipp Rudo - 1.0.44-23 - kdumpct/fadump: fix ShellCheck findings * Tue Dec 10 2024 Philipp Rudo - 1.0.44-22 - kdumpctl/test: fix shellcheck findings * Tue Dec 10 2024 Philipp Rudo - 1.0.44-21 - kdumpctl/test: fix fetching of status for ssh target with ipv6 * Wed Dec 04 2024 Tao Liu - 1.0.44-20 - Re-introduce vmcore creation notification to kdump * Wed Dec 04 2024 Tao Liu - 1.0.44-19 - Revert "Introduce vmcore creation notification to kdump" * Wed Nov 27 2024 Coiby Xu - 1.0.44-18 - Let %%post scriptlet always exit successfully * Tue Nov 26 2024 Lichen Liu - 1.0.44-17 - Add kdump dracut config * Tue Nov 26 2024 Hari Bathini - 1.0.44-16 - fadump: fix passing additional parameters for capture kernel * Thu Nov 21 2024 Sourabh Jain - 1.0.44-15 - Use all available CPUs to collect dump * Tue Nov 12 2024 Hari Bathini - 1.0.44-14 - fadump: pass additional parameters for capture kernel * Mon Nov 04 2024 Philipp Rudo - 1.0.44-13 - kdumpctl: deprecate --reboot for reset-creashkernel * Fri Nov 01 2024 Coiby Xu - 1.0.44-12 - Set up crashkernel value for osbuild * Mon Oct 21 2024 Coiby Xu - 1.0.44-11 - Allow ssh opts to be processed correctly * Fri Oct 18 2024 Tao Liu - 1.0.44-10 - Return the correct exit code of rebuild initrd * Sat Oct 12 2024 Sourabh Jain - 1.0.44-9 - kdump.service: Replace ConditionKernelCommandLine with ExecCondition * Fri Oct 11 2024 Colin Walters - 1.0.44-8 - dracut: Disable ostree-prepare-root * Wed Oct 09 2024 Lichen Liu - 1.0.44-7 - unit tests: add tests for get_mntpoint_from_target * Wed Oct 09 2024 Lichen Liu - 1.0.44-6 - kdump-lib-initramfs: Improve mount point retrieval logic * Sun Sep 29 2024 Tao Liu - 1.0.44-5 - Introduce vmcore creation notification to kdump * Thu Jul 18 2024 Fedora Release Engineering - 1.0.44-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jul 15 2024 Packit - 1.0.44-1 - Update to version 1.0.44 * Tue Oct 24 2023 Coiby - 1.0.42-10 - split from kexec-tools ## END: Generated by rpmautospec