Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pstore-save, replacing nieficleanvars fixup script #195

Merged
merged 4 commits into from
Jun 22, 2021
Merged

add pstore-save, replacing nieficleanvars fixup script #195

merged 4 commits into from
Jun 22, 2021

Conversation

bstreiff
Copy link
Contributor

As a better solution to dealing with the buildup of EFI variables created by efi-pstore, add a new script, pstore-save, to actually save off the dmesg data from prior boots. This works similarly (although not identically) to how systemd-pstore would if configured to save to local files and not the journal.

It may be possible to leverage this for ARM (using the ramoops backend for pstore) but our targets are not presently configured to use ramoops, so this is only being enabled for x64.

This obsoletes the nieficleanvars script.

@amstewart amstewart requested a review from shruthi-ravi June 17, 2021 23:28
Copy link
Contributor

@amstewart amstewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good; apart from the minor clarification request above.

Also, could you add the ptest package to the smoke packagegroup. It doesn't matter at this stage, but I'd like to have it enumerated there, so that we don't forget to enable it when we build out the ptest infrastructure.

bstreiff added 4 commits June 19, 2021 11:24
"pstore-save" is a utility script that retrieves information
out of "pstore", a persistent storage interface for the kernel
to store "last breath" crash information before rebooting. The
nilrt kernel has been storing this information for some time
now (as per the default kernel configuration).

It is inspired in large parts by systemd-pstore, added in systemd
248, but since the nilrt distro is not presently using systemd,
this implemention avoids the systemd dependencies.

A ptest is also added. Since we obviously would prefer to avoid
crashing the kernel from a ptest, it uses cached data generated
from a sysrq-triggered crash on qemu.

Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>
Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>
Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>
…ariables on boot"

Now that we have pstore-save which can properly store and clean up these
variables, we don't need this fixup script anymore.

This reverts commit 196d987.

Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>
@amstewart
Copy link
Contributor

Approved. Let me know when you're ready for merge, @bstreiff .

@amstewart amstewart merged commit d6a7537 into ni:nilrt/master/sumo Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants