Add kdumpst
This commit is contained in:
27
arch/kdumpst/kdumpst.install
Normal file
27
arch/kdumpst/kdumpst.install
Normal file
@ -0,0 +1,27 @@
|
||||
# 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:
|
||||
Reference in New Issue
Block a user