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
|
2024-01-04 04:50:37 +00:00
|
|
|
# for initcpio or dracut. This hook would act upon kernel
|
|
|
|
|
# installation, upgrade and removal.
|
2022-12-21 13:17:29 -03:00
|
|
|
#
|
|
|
|
|
[Trigger]
|
|
|
|
|
Type = Path
|
|
|
|
|
Operation = Install
|
|
|
|
|
Operation = Remove
|
|
|
|
|
Operation = Upgrade
|
|
|
|
|
Target = usr/lib/modules/*/vmlinuz
|
|
|
|
|
|
|
|
|
|
[Action]
|
2024-01-04 04:50:37 +00:00
|
|
|
Description = Managing kdump minimal initramfs
|
2022-12-21 13:17:29 -03:00
|
|
|
When = PostTransaction
|
2024-01-04 04:50:37 +00:00
|
|
|
Exec =/bin/bash -s -c 'if command -v mkinitcpio > /dev/null; then /usr/lib/kdumpst/kdump-mkinitcpio-hook.sh; fi && if command -v dracut > /dev/null; then /usr/lib/kdumpst/kdump-dracut-hook.sh; fi'
|
2022-12-21 13:17:29 -03:00
|
|
|
NeedsTargets
|