@cjwatson
thanks for clarifying this for me.
Indeed, when looking in the initramfs context I see this :
(initramfs) . /root/usr/bin/ldd /root/usr/bin/makedumpfile
linux-vdso.so.1 => (0x00007fff0f9ff000)
libdw.so.1 => not found
libelf.so.1 => not found
libz.so.1 => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f419e171000)
/lib64/ld-linux-x86-64.so.2 (0x00007f419e514000)
So I've ran a new test by revoking both proposed patches and using the
following syntax in /usr/share/initramfs-tools/scripts/init-
bottom/0_kdump :
--- 0_kdump.orig 2011-11-23 14:32:29.113580047 +0100
+++ 0_kdump 2011-11-23 14:22:35.232067873 +0100
@@ -19,6 +19,7 @@
MAKEDUMPFILE="$rootmnt/usr/bin/makedumpfile"
LOG="$rootmnt/var/crash/vmcore.log"
VMCORE="/proc/vmcore"
+export LD_LIBRARY_PATH="/root/lib:/root/usr/lib:/root/lib/x86_64-linux-gnu"
# Check that this is a kexec kernel.
grep -q kdump_needed /proc/cmdline || exit 0
Using the LD_LIBRARY_PATH here does allow for the dynamically-linked
makedumpfile to work adequately.
So this confirms Colin's statement. I have yet to verify if this is the
best place to make use of the LD_LIBRARY_PATH and to make it more
generic.
So I will remove the previous patches and post the new one once ready.
Thanks Colin for steering me in this direction.
** Patch removed: "linux-crashdump_makedumpfile-static_LP785425.patch"
https://bugs.launchpad.net/ubuntu/+source/kexec-tools/+bug/785425/+attachment/2604950/+files/linux-crashdump_makedumpfile-static_LP785425.patch
** Patch removed: "kdump.initramfs_makedumpfile_static-LP785425.patch"
https://bugs.launchpad.net/ubuntu/+source/kexec-tools/+bug/785425/+attachment/2604948/+files/kdump.initramfs_makedumpfile_static-LP785425.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/785425
Title:
0_kdump uses dynamic makedumpfile(8) binary, which fails horribly
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kexec-tools/+bug/785425/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs