Compare commits
2 Commits
07eb2cfae2
...
c9740b06a1
| Author | SHA1 | Date | |
|---|---|---|---|
|
c9740b06a1
|
|||
|
74c862e289
|
1
arch/kdumpst/.gitignore
vendored
Normal file
1
arch/kdumpst/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
kdumpst/
|
||||
28
arch/kdumpst/PKGBUILD
Normal file
28
arch/kdumpst/PKGBUILD
Normal 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}"
|
||||
}
|
||||
27
arch/kdumpst/kdumpst.install
Normal file
27
arch/kdumpst/kdumpst.install
Normal 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:
|
||||
Reference in New Issue
Block a user