Files
kdumpst/initramfs/alpm-hook.generic
Guilherme G. Piccoli acd5a64652 all: Add LICENSE (and fix SPDX deprecated header)
Thanks to the heads-up from Foxboron (on Arch Linux IRC channel)
add hereby a LICENSE file to the project that matches the SPDX
headers. While at it, fix the SPDX short identifier on headers,
that was deprecated (as per [0]).

The license file was a pure copy obtained today from [1].

[0] https://spdx.org/licenses/LGPL-2.1+.html
[1] https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
2023-04-02 12:26:00 -03:00

28 lines
682 B
Plaintext

# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Copyright (c) 2022 Valve.
# Maintainer: Guilherme G. Piccoli <gpiccoli@igalia.com>
#
# alpm hook to deal with the kdump initramfs creation/deletion
# for INITRD users. This hook would act upon kernel installation,
# upgrade and removal, also on INITRD package installation.
#
[Trigger]
Type = Path
Operation = Install
Operation = Remove
Operation = Upgrade
Target = usr/lib/modules/*/vmlinuz
[Trigger]
Type = Package
Operation = Install
Target = INITRD
[Action]
Description = Managing kdump minimal initramfs and INITRD hooks...
Depends=INITRD
When = PostTransaction
Exec = /usr/lib/kdumpst/kdump-INITRD-hook.sh
NeedsTargets