Comment 8 for bug 1714485

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote : Re: Ubuntu 16.04.03: kdump fails with error "kdump-tools[1532]: /etc/init.d/kdump-tools: 26: [: -ne: unexpected operator" when / file system is xfs.

The investigation led me to find out that the config file is written by the maintainer script, which does not sync it to disk. So, when the crash is triggered right after the installation of kdump-tools, the file will be empty and the dump won't happen.

I have fixed this upstream by changing the maintainer script to use ucf and syncing it. Downstream, I may simply add the sync.

The other thing I might fix is dumping and rebooting when we are running the dump kernel, because USE_KDUMP should be about automatically loading the kdump kernel, not about whether to kdump or not when kdump kernel is running.

Cascardo.