## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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.58 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 # Needed for UKI support Recommends: binutils 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 Aug 06 2025 Coiby Xu - 1.0.58-1 - Uncommitted changes * 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