blob: c0bf0d3d210080158d5c133d6d18551d2fdb9423 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# 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
}
|