[RFE] Enable makedumpfile invocation from initramfs

Bug #1893837 reported by Pedro Principeza
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kdump-tools (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

[Request]
To be able to call makedumpfile at the from the initramfs, instead of doing so after rootfs is active/mounted.

[Justification]
Systems with too much memory will demand higher amounts of memory for the crashkernel parameter, as well as having less systemd units up and running before makedumpfile kicks in. The idea is to use as little memory as possible in the kernel dump generation.

[Workaround]
Tailoring the postinst.d/kdump-tools hooks can have makedumpfile be called earler. Although feasible, that's too much of a "hack", and this could ideally be embedded in kdump-tools as an option.

[Regressions]
TBE.

Tags: fr-2497 sts
Revision history for this message
Guilherme G. Piccoli (gpiccoli) wrote :

Thanks Pedro for the LP! Related Debian MR: https://salsa.debian.org/debian/makedumpfile/-/merge_requests/1

The approach taken in the above Debian MR is pretty complex and involve more than just kdump from initrd.
The idea to implement such feature in a simple and safe way would be to have it as an optional configuration and when that feature is set, an initramfs hook adds the necessary tooling to the kdump initrd; then a script could run and collect the kdump from init-bottom (or local/fs-bottom).

Cascardo, do you agree with that?
Cheers,

Guilherme

Changed in makedumpfile (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Guilherme G. Piccoli (gpiccoli)
tags: added: sts
Mathew Hodson (mhodson)
affects: makedumpfile (Ubuntu) → kdump-tools (Ubuntu)
Changed in kdump-tools (Ubuntu):
assignee: Guilherme G. Piccoli (gpiccoli) → nobody
tags: added: fr-2497
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.