# SPDX-License-Identifier: LGPL-2.1-or-later # # Copyright (c) 2022 Valve. # Maintainer: Guilherme G. Piccoli # # alpm hook to deal with the kdump initramfs creation/deletion # for initcpio or dracut. This hook would act upon kernel # installation, upgrade and removal. # [Trigger] Type = Path Operation = Install Operation = Remove Operation = Upgrade Target = usr/lib/modules/*/vmlinuz [Action] Description = Managing kdump minimal initramfs When = PostTransaction 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' NeedsTargets