28 lines
727 B
Plaintext
28 lines
727 B
Plaintext
# 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:
|