2022-12-01 12:12:42 -03:00
|
|
|
#!/bin/bash
|
2022-12-28 15:44:49 -03:00
|
|
|
set -o pipefail # Didn't set -u on purpose, since users could pass empty $1
|
2022-12-01 12:12:42 -03:00
|
|
|
#
|
2023-04-02 12:26:00 -03:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2022-12-01 12:12:42 -03:00
|
|
|
#
|
|
|
|
|
# Copyright (c) 2021 Valve.
|
|
|
|
|
# Maintainer: Guilherme G. Piccoli <gpiccoli@igalia.com>
|
|
|
|
|
#
|
|
|
|
|
# Script that loads the panic kdump (from within a systemd service) and/or
|
|
|
|
|
# configures the Pstore-RAM mechanism. If the proper parameters are passed
|
|
|
|
|
# also, either it creates the minimal kdump initramfs for the running kernel
|
|
|
|
|
# or removes all the previously created ones. Since it runs on boot time,
|
|
|
|
|
# extra care is required to avoid boot hangs.
|
|
|
|
|
#
|