On Tue, Jul 29, 2014 at 08:57:55PM +0800, WANG Chao wrote:
Now upon failure kdump script might not be called at all and it
might
not be able to execute default action. It results in a hang.
Because we disable emergency shell and rely on kdump.sh being invoked
through dracut-pre-pivot hook. But it might happen that we never call
into dracut-pre-pivot hook because certain systemd targets could not
reach due to failure in their dependencies. In those cases error
handling code does not run and system hangs.
I think it is important to show the systemd dependency graph here.
Just couple of lines.
xyz--->foo.target---->bar.service--->dracut-pre-pivot
And show what target does not reach hence mention that dracut-pre-pivot
hook does not run.
[..]
+dump_to_rootfs()
+{
+
+ echo "Kdump: trying to bring up rootfs device"
+ systemctl start dracut-initqueue
+ echo "Kdump: waiting for rootfs mount, will timeout after 90 seconds"
+ systemctl start sysroot.mount
Will this ever try to enter emergency shell again (in case of failure?)
Thanks
Vivek