|
|
@ -1,14 +1,31 @@
|
|
|
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
|
|
|
release_number = 5;
|
|
|
|
|
|
|
|
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
|
|
|
|
# kdump-utils has no debug source
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
Name: kdump-utils
|
|
|
|
Name: kdump-utils
|
|
|
|
Version:1.0.43
|
|
|
|
Version:1.0.45
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Kernel crash dump collection utilities
|
|
|
|
Summary: Kernel crash dump collection utilities
|
|
|
|
|
|
|
|
|
|
|
|
License: GPL-2.0-only
|
|
|
|
License: GPL-2.0-only
|
|
|
|
URL: https://github.com/rhkdump/kdump-utils
|
|
|
|
URL: https://github.com/rhkdump/kdump-utils
|
|
|
|
Source0: https://github.com/rhkdump/kdump-utils/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/rhkdump/kdump-utils/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Return the correct exit code of rebuild initrd
|
|
|
|
|
|
|
|
# Author: Tao Liu <ltao@redhat.com>
|
|
|
|
|
|
|
|
Patch1: 0001-Return-the-correct-exit-code-of-rebuild-initrd.patch
|
|
|
|
|
|
|
|
# Allow ssh opts to be processed correctly
|
|
|
|
|
|
|
|
# Author: Coiby Xu <coxu@redhat.com>
|
|
|
|
|
|
|
|
Patch2: 0002-Allow-ssh-opts-to-be-processed-correctly.patch
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch ppc64 ppc64le
|
|
|
|
%ifarch ppc64 ppc64le
|
|
|
|
Requires(post): servicelog
|
|
|
|
Requires(post): servicelog
|
|
|
|
Recommends: keyutils
|
|
|
|
Recommends: keyutils
|
|
|
@ -39,23 +56,15 @@ kdump kernel and initramfs to save the collected crash kernel dump to specified
|
|
|
|
target.
|
|
|
|
target.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install sbindir=%_sbindir
|
|
|
|
%make_install sbindir=%_sbindir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
# don't try to systemctl preset the kdump service for old kexec-tools
|
|
|
|
# kdumpctl will only set up default crashkernel when kdump.service is enabled
|
|
|
|
#
|
|
|
|
%systemd_post kdump.service
|
|
|
|
# when the old kexec-tools gets removed, this trigger will be excuted to
|
|
|
|
|
|
|
|
# create a file. So later the posttrans scriptlet will know there is no need to
|
|
|
|
|
|
|
|
# systemctl preset the kdump service.
|
|
|
|
|
|
|
|
# This solution can be dropped in F41 when we assume no users will use old
|
|
|
|
|
|
|
|
# version of kexec-tools.
|
|
|
|
|
|
|
|
%define kexec_tools_no_preset %{_localstatedir}/lib/rpm-state/kexec-tools.no-preset
|
|
|
|
|
|
|
|
%triggerun -- kexec-tools
|
|
|
|
|
|
|
|
touch %{kexec_tools_no_preset}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
touch /etc/kdump.conf
|
|
|
|
touch /etc/kdump.conf
|
|
|
|
|
|
|
|
|
|
|
@ -75,14 +84,6 @@ servicelog_notify --remove --command=/usr/lib/kdump/kdump-migrate-action.sh >/de
|
|
|
|
%systemd_preun kdump.service
|
|
|
|
%systemd_preun kdump.service
|
|
|
|
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
%posttrans
|
|
|
|
# don't try to systemctl preset the kdump service for old kexec-tools
|
|
|
|
|
|
|
|
if [[ -f %{kexec_tools_no_preset} ]]; then
|
|
|
|
|
|
|
|
# this if branch can be removed in F41 when we assume no users will use the old kexec-tools
|
|
|
|
|
|
|
|
rm %{kexec_tools_no_preset}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
# Initial installation
|
|
|
|
|
|
|
|
%systemd_post kdump.service
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Try to reset kernel crashkernel value to new default value or set up
|
|
|
|
# Try to reset kernel crashkernel value to new default value or set up
|
|
|
|
# crasherkernel value for new install
|
|
|
|
# crasherkernel value for new install
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -90,6 +91,7 @@ fi
|
|
|
|
# 1. Skip ostree systems as they are not supported.
|
|
|
|
# 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;
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
if [ ! -f /run/ostree-booted ] && [ $1 == 1 -o $1 == 2 ]; then
|
|
|
|
kdumpctl _reset-crashkernel-after-update
|
|
|
|
kdumpctl _reset-crashkernel-after-update
|
|
|
|
:
|
|
|
|
:
|
|
|
@ -132,11 +134,34 @@ fi
|
|
|
|
%doc supported-kdump-targets.txt
|
|
|
|
%doc supported-kdump-targets.txt
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.0.43-1
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
* Fri Nov 15 2024 Philipp Rudo <prudo@redhat.com> - 1.0.45-5
|
|
|
|
|
|
|
|
- Allow ssh opts to be processed correctly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 01 2024 Coiby Xu <coxu@redhat.com> - 1.0.45-4
|
|
|
|
|
|
|
|
- Set up crashkernel value for osbuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.0.45-3
|
|
|
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Oct 20 2024 Tao Liu <ltao@redhat.com> - 1.0.45-2
|
|
|
|
|
|
|
|
- Return the correct exit code of rebuild initrd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 11 2024 Lichen Liu <lichliu@redhat.com> - 1.0.45-1
|
|
|
|
|
|
|
|
- Rebase to upstream v1.0.45
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 30 2024 Lichen Liu <lichliu@redhat.com> - 1.0.43-3
|
|
|
|
|
|
|
|
- Release 1.0.43-2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 27 2024 Philipp Rudo <prudo@redhat.com> - 1.0.43-2
|
|
|
|
|
|
|
|
- Enable erofs support for the kdump initrd
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 15 2024 Lichen Liu <lichliu@redhat.com> - 1.0.43-1
|
|
|
|
* Mon Jul 15 2024 Lichen Liu <lichliu@redhat.com> - 1.0.43-1
|
|
|
|
- Update to upstream 1.0.43
|
|
|
|
- Release 1.0.43-1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 10 2024 Lichen Liu <lichliu@redhat.com> - 1.0.42-2
|
|
|
|
|
|
|
|
- Enable gating test
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 24 2023 Coiby <coxu@redhat.com> - 1.0.42-10
|
|
|
|
* Wed Jul 10 2024 Lichen Liu <lichliu@redhat.com> - 1.0.42-1
|
|
|
|
- split from kexec-tools
|
|
|
|
- Initial import for CentOS Stream 10
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|