Public bug reported:

Binary package hint: kexec-tools

[EMAIL PROTECTED]:~$ lsb_release -rd
Description:    Ubuntu 7.10
Release:        7.10

kexec-tools:
  Installed: 20070330-1ubuntu2
  Candidate: 20070330-1ubuntu2
  Version table:
 *** 20070330-1ubuntu2 0
        500 ftp://ftp.free.fr gutsy/main Packages
        100 /var/lib/dpkg/status

What happens:
- when forcing a crash the (crash) kernel is indeed started 
- but it fails to copy /dev/vmcore to /var/log/crash 

Reason: 
the cp version in  initramfs does not support the flag  --sparse=always which is
used in /usr/share/initramfs-tools/scripts/init-bottom/0_kdump

Fix: removing the flag does solve the issue (but a better solution might
be to update the cp version present in initramfs.)

I also put the patch below

Cedric


[EMAIL PROTECTED]:~$ diff -Naur 
/usr/share/initramfs-tools/scripts/init-bottom/0_kdump.orig 
/usr/share/initramfs-tools/scripts/init-bottom/0_kdump
--- /usr/share/initramfs-tools/scripts/init-bottom/0_kdump.orig 2008-03-26 
15:44:47.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/init-bottom/0_kdump      2008-03-26 
15:45:02.000000000 +0100
@@ -20,7 +20,8 @@
 mount $rootmnt -o remount,rw
 # Delete it if the copy fails, mainly to keep from filling up filesystems
 # by accident.
-cp --sparse=always /proc/vmcore $rootmnt/var/crash/vmcore || rm -f \
+#cp --sparse=always /proc/vmcore $rootmnt/var/crash/vmcore || rm -f \
+cp  /proc/vmcore $rootmnt/var/crash/vmcore || rm -f \
        $rootmnt/var/crash/vmcore
 umount $rootmnt
 reboot

** Affects: kexec-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: crashdump kdump kexec kexec-tools

-- 
dumping a kernel crash dump to a file does not work
https://bugs.launchpad.net/bugs/207134
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to