savecore: Create core.txt.last symlink#2178
Conversation
When saving a coredump, savecore(8) maintains .last symlinks for info and vmcore artifacts, but not for the crashinfo text report. Create it to point at the current core.txt.<bounds> file. This makes /var/crash/core.txt.last track the same dump as info.last and vmcore.last. Signed-off-by: Ricardo Branco <rbranco@suse.de>
mhorne
left a comment
There was a problem hiding this comment.
I think the idea is great.
However this is not the right place to implement it. The core.txt files are generated by the /usr/sbin/crashinfo shell script, not by savecore itself.
So the symlink should be generated there.
I took a look at crashinfo and it doesn't generate any symlinks at all. All the symlinks are being generated by savecore. |
That's correct. But savecore creates symlinks to files that it owns/generates. savecore does not know about Here is a quick demonstration of the inconsistency (your change is applied): It has created a symlink to So, it belongs in crashdump.sh, and should be as simple as: |
You're right. PTAL #2199 |
When saving a coredump, savecore(8) maintains
.lastsymlinks for info and vmcore artifacts, but not for the crashinfo text report. Create it to point at the currentcore.txt.<bounds>file.This makes /var/crash/core.txt.last track the same dump as info.last and vmcore.last.
Now I have
core.txt.last: