Hi,
I built a test package with v5 patch, and Colin built it into an Atomic tree for testing.
I removed the previous initramfs-kdump.img and rebooted.
After reboot, the kdump service was able to automatically locate the /boot/ostree/*
directory containing the kernel vmlinuz and build a new initramfs-kdump.img. I then
crashed the system. Here is a snippet from the console log:
kdump: dump target is /dev/mapper/atomicos-root
kdump: saving to /sysroot//crash/127.0.0.1-2015.01.29-16:10:24/
kdump: saving vmcore-dmesg.txt
kdump: saving vmcore-dmesg.txt complete
kdump: saving vmcore
Copying data : [100.0 %] -
kdump: saving vmcore complete
Stopping Kdump Vmcore Save Service...
[ OK ] Stopped Kdump Vmcore Save Service.
And after boot:
-bash-4.2# ls -alhR /sysroot/crash
/sysroot/crash:
total 4.0K
drwxr-xr-x. 3 root root 42 Jan 29 16:25 .
drwxr-xr-x. 12 root root 4.0K Jan 29 13:55 ..
drwxr-xr-x. 2 root root 42 Jan 29 16:10 127.0.0.1-2015.01.29-16:10:24
/sysroot/crash/127.0.0.1-2015.01.29-16:10:24:
total 186M
drwxr-xr-x. 2 root root 42 Jan 29 16:10 .
drwxr-xr-x. 3 root root 42 Jan 29 16:25 ..
-rw-------. 1 root root 186M Jan 29 16:10 vmcore
-rw-r--r--. 1 root root 40K Jan 29 16:10 vmcore-dmesg.txt
-bash-4.2# grep KDUMP_BOOTDIR /etc/sysconfig/kdump
KDUMP_BOOTDIR=""
-bash-4.2# rpm -q kexec-tools
kexec-tools-2.0.7-15.1_atomic.el7.x86_64
----- Original Message -----
From: "Baoquan He" <bhe(a)redhat.com>
To: "Dave Young" <dyoung(a)redhat.com>
Cc: kexec(a)lists.fedoraproject.org, walters(a)redhat.com, jeder(a)redhat.com
Sent: Thursday, January 29, 2015 5:08:20 AM
Subject: Re: [Patch v4] kdumpctl: adjust the boot dir if kernel is put in sub dir of
/boot
OK, let me post a v5 patch to exclude s390x.
>
> Tested on ppc64, it works. I have not got a s390 machine.
>
> Asked a console log from qzhao for s390 boot:
>
https://bugzilla.redhat.com/show_bug.cgi?id=1185460
>
> Seems there is BOOT_IMAGE=0 in cmdline, it should has different meanings.
> But this patch will work on all grub booted machines.
>
> One possible fix is to exclude s390, for s390 just use /boot.
>
> Thanks
> Dave