#!/bin/bash set -eo pipefail # exclude -u on purpose to avoid issues with param checking # # SPDX-License-Identifier: LGPL-2.1-or-later # # Copyright (c) 2022 Valve. # Maintainer: Guilherme G. Piccoli # # This is the generic alpm-hook script that handles kernel/package # installation for INITRD users, on behalf of kdumpst. Covers both manual # 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. #