2022-12-21 13:17:29 -03:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -eo pipefail # exclude -u on purpose to avoid issues with param checking
|
|
|
|
|
#
|
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>
|
|
|
|
|
#
|
|
|
|
|
# This is the generic alpm-hook script that handles kernel/package
|
2023-03-22 20:08:47 -03:00
|
|
|
# installation for INITRD users, on behalf of kdumpst. Covers both manual
|
2022-12-21 13:17:29 -03:00
|
|
|
# invocation (to create the initramfs image for a given kernel) as
|
|
|
|
|
# well as kernel package installation/removal trigger. It also handles
|
|
|
|
|
# the event of installing the package INITRD, which requires the
|
|
|
|
|
# installation of initramfs hooks to be executed early in boot time,
|
|
|
|
|
# in case of a kdump.
|
|
|
|
|
#
|