From 74c862e289da9a17b70aaba3c4e241d11efbe760 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Thu, 19 Feb 2026 22:11:03 -0800 Subject: [PATCH] Add kdumpst --- arch/kdumpst/.gitignore | 1 + arch/kdumpst/PKGBUILD | 28 ++++++++++++++++++++++++++++ arch/kdumpst/kdumpst.install | 27 +++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 arch/kdumpst/.gitignore create mode 100644 arch/kdumpst/PKGBUILD create mode 100644 arch/kdumpst/kdumpst.install diff --git a/arch/kdumpst/.gitignore b/arch/kdumpst/.gitignore new file mode 100644 index 0000000..ef7e5dd --- /dev/null +++ b/arch/kdumpst/.gitignore @@ -0,0 +1 @@ +kdumpst/ \ No newline at end of file diff --git a/arch/kdumpst/PKGBUILD b/arch/kdumpst/PKGBUILD new file mode 100644 index 0000000..22cd9da --- /dev/null +++ b/arch/kdumpst/PKGBUILD @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# Copyright (c) 2021 Valve. +# Maintainer: Guilherme G. Piccoli + +pkgname=kdumpst +pkgver=85 +pkgrel=1 +pkgdesc="(Fork of) kdumpst, a tool for collecting pstore/kdump logs." +arch=('any') +url="https://git.zander.im/Zander671/kdumpst" +license=('LGPL2.1') +install=kdumpst.install + +source=("git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd kdumpst + git rev-list --count HEAD +} + +package() { + depends=('dmidecode' 'kexec-tools' 'makedumpfile' 'zip' 'zstd') + + cd kdumpst + make install DESTDIR="${pkgdir}" +} diff --git a/arch/kdumpst/kdumpst.install b/arch/kdumpst/kdumpst.install new file mode 100644 index 0000000..65a8f46 --- /dev/null +++ b/arch/kdumpst/kdumpst.install @@ -0,0 +1,27 @@ +# Spdx-License-Identifier: LGPL-2.1-or-later +# +# Copyright (c) 2021 Valve. +# Maintainer: Guilherme G. Piccoli + +post_install() { + # Create the minimal kdump initramfs for the running kernel; + # notice this also installs the initcpio (or dracut) hooks. + /usr/lib/kdumpst/kdumpst-load.sh create-initrd +} + +pre_remove() { + # Delete all minimal initramfs images created for kdump + /usr/lib/kdumpst/kdumpst-load.sh clear-initrd + + # Remove the initcpio/dracut hooks unconditionally (if they + # were never installed, no biggies). + + rm -f /usr/lib/initcpio/install/kdump + rm -f /usr/lib/initcpio/hooks/kdump + rm -rf /usr/lib/dracut/modules.d/55kdump +} + +# Local Variables: +# mode: sh +# sh-shell: bash +# End: