kdump-load: Add usage/help messages to this script

The kdump-load script is the only one that has more than a
single functionality, potentially being invoked in different ways.

With that in mind, just add a small usage/help for users'
information (thanks Emil for the suggestion).

While at it, changed the additional commands to be more friendly
and require exactly one command to be passed - changes summary:
s/initrd/create-initrd
s/clear/clear-initrd
s//load

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
Guilherme G. Piccoli
2022-12-28 15:44:49 -03:00
parent a3ab8c421b
commit e24d6d9b46
4 changed files with 56 additions and 17 deletions

View File

@ -7,7 +7,7 @@
#
# Configuration settings for kdump/pstore. After _any_ change in this
# file, it's required to re-create the kdump minimal initramfs by running:
# /usr/lib/kdump/kdump-load.sh initrd
# /usr/lib/kdump/kdump-load.sh create-initrd
#
#
# Pstore-RAM settings