On Wed, Jan 28, 2015 at 04:29:52PM +0800, Baoquan He wrote:
[..]
+adjust_boot_dir()
+{
+ #If user specify different boot dir then /boot, he need take care of
+ # the whole thing like /boot//ostree/rhel-atomicxxxx/vmlinuz-xxx
+ [ $KDUMP_BOOTDIR != "/boot" ] && return
+ eval $(cat /proc/cmdline | grep "BOOT_IMAGE" | cut -d' ' -f1)
This is assuming that BOOT_IMAGE is always first field in the command
line. I think one should always be able to change the order by simple
editing of grub.cfg. So let us not make this assumption.
Thanks
Vivek