2023-04-02 12:26:00 -03:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2022-12-21 13:17:29 -03:00
|
|
|
#
|
|
|
|
|
# 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
|
2023-03-22 20:08:47 -03:00
|
|
|
Exec = /usr/lib/kdumpst/kdump-INITRD-hook.sh
|
2022-12-21 13:17:29 -03:00
|
|
|
NeedsTargets
|