Package: grub Version: 0.95+cvs20040624-14 /sbin/grub segfaults on my amd64 system when called from grub-install, due to bug #293722. The grub-install script doesn't notice this, states "No error reported", and exits normally. Sample output:
== iria:~# grub-install /dev/sda /sbin/grub-install: line 516: 5065 Segmentation fault $grub_shell --batch root $root_drive setup $force_lba --stage2=$grubdir/stage2 --prefix=$grub_prefix $install_drive quit EOF Installation finished. No error reported. This is the contents of the device map /boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (hd0) /dev/hda (hd1) /dev/sda iria:~# == One effect of this bug is that debian-installer didn't notice the error when installing grub on my system, and the initial reboot failed. grub-install should return a non-zero exit code if $grub_shell is terminated by a signal. Adding '|| exit 1' to line 512 should fix this bug (this is untested): # Now perform the installation. $grub_shell --batch $no_floppy --device-map=$device_map || exit 1 <<EOF >$log_file -- System Information: Debian Release: 3.1 Architecture: amd64 (x86_64) Kernel: Linux 2.6.10-9-amd64-k8 Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) -- debconf-show failed
signature.asc
Description: Digital signature