Add pstore-RAM support and fix comments indentation

Check README.MD and /etc/default/kdump for instructions on
pstore usage - should be simple, it's automatically configured.

Notice that we expect all units to have the same e820 memory
map, hence to have the RAM buffer available. This point should
be better clarified by the team working with firmware.

Also, the package now enables the kdump systemd service
automatically, in a post-installer hook.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
Guilherme G. Piccoli
2021-12-29 16:26:41 -03:00
parent 69dfe03e44
commit a1f89d341f
8 changed files with 131 additions and 43 deletions

View File

@ -4,11 +4,15 @@
# Maintainer: Guilherme G. Piccoli <gpiccoli@igalia.com>
post_install() {
# Create the minimal kdump initramfs for the running kernel
# Create the minimal kdump initramfs for the running kernel
/usr/lib/kdump/kdump_load.sh initrd
systemctl enable kdump-steamos.service
}
pre_remove() {
# Delete all minimal initramfs images created for kdump
systemctl disable kdump-steamos.service
# Delete all minimal initramfs images created for kdump
/usr/lib/kdump/kdump_load.sh clear
}