Add kdumpst

This commit is contained in:
2026-02-19 22:11:03 -08:00
parent afd815c014
commit 74c862e289
3 changed files with 56 additions and 0 deletions

1
arch/kdumpst/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
kdumpst/

28
arch/kdumpst/PKGBUILD Normal file
View File

@ -0,0 +1,28 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (c) 2021 Valve.
# Maintainer: Guilherme G. Piccoli <gpiccoli@igalia.com>
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}"
}

View File

@ -0,0 +1,27 @@
# Spdx-License-Identifier: LGPL-2.1-or-later
#
# Copyright (c) 2021 Valve.
# Maintainer: Guilherme G. Piccoli <gpiccoli@igalia.com>
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: