Bug#724756: grub-pc: Latest version of grub produces a core.img that is too large to install.

Michael Lustfield michael at profarius.com
Fri Sep 27 14:46:56 UTC 2013


Package: grub-pc
Version: 2.00-19
Severity: important

Dear Maintainer,


After upgrading to the latest version of grub-pc in Debian jessie, th core.img
file went from 32K to 36K. This makes it no longer possible to install grub to
the MBR. It seems that some of the modules are significantly larger than they
should be and this is making it impossible to install grub to what seems to be
a very common setup. The only thing extra I'm using is LVM. Adding RAID and LVM
support should still keep core.img under the 32K limit. This is an issue on
over 400 systems for me, so just moving the first partition over and doing a
--force will not be an option, nor should it be required.

Version 1.99-27+deb7u1 did not have this issue (but was close).

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/sys-root / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/mapper/sys-boot /boot ext2 rw,relatime,errors=continue 0 0
/dev/mapper/sys-home /home ext4 rw,relatime,data=ordered 0 0
/dev/mapper/sys-opt /opt ext4 rw,relatime,data=ordered 0 0
/dev/mapper/sys-var /var ext4 rw,relatime,data=ordered 0 0
/dev/mapper/sys-varlog /var/log ext4 rw,relatime,data=ordered 0 0
/dev/mapper/homedirs-7460 /srv/homedirs/7460 ext4 rw,relatime,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/sys-root'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvm/sys-root'  d19dfc15-d628-44da-a4e7-97269b289293
else
  search --no-floppy --fs-uuid --set=root d19dfc15-d628-44da-a4e7-97269b289293
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d19dfc15-d628-44da-a4e7-97269b289293' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvm/sys-boot'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvm/sys-boot'  89e952f3-c83a-4911-bab9-7c8f5a1b8228
	else
	  search --no-floppy --fs-uuid --set=root 89e952f3-c83a-4911-bab9-7c8f5a1b8228
	fi
	echo	'Loading Linux 3.10-3-amd64 ...'
	linux	/vmlinuz-3.10-3-amd64 root=/dev/mapper/sys-root ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.10-3-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-d19dfc15-d628-44da-a4e7-97269b289293' {
	menuentry 'Debian GNU/Linux, with Linux 3.10-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-3-amd64-advanced-d19dfc15-d628-44da-a4e7-97269b289293' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvm/sys-boot'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvm/sys-boot'  89e952f3-c83a-4911-bab9-7c8f5a1b8228
		else
		  search --no-floppy --fs-uuid --set=root 89e952f3-c83a-4911-bab9-7c8f5a1b8228
		fi
		echo	'Loading Linux 3.10-3-amd64 ...'
		linux	/vmlinuz-3.10-3-amd64 root=/dev/mapper/sys-root ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.10-3-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.10-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-3-amd64-recovery-d19dfc15-d628-44da-a4e7-97269b289293' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvm/sys-boot'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvm/sys-boot'  89e952f3-c83a-4911-bab9-7c8f5a1b8228
		else
		  search --no-floppy --fs-uuid --set=root 89e952f3-c83a-4911-bab9-7c8f5a1b8228
		fi
		echo	'Loading Linux 3.10-3-amd64 ...'
		linux	/vmlinuz-3.10-3-amd64 root=/dev/mapper/sys-root ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.10-3-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN LVM
  --- Volume group ---
  VG Name               homedirs
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               3.12 TiB
  PE Size               4.00 MiB
  Total PE              819199
  Alloc PE / Size       3584 / 14.00 GiB
  Free  PE / Size       815615 / 3.11 TiB
  VG UUID               nWZskg-eqHl-YFVa-UyDq-ISpF-RqCr-WLc0ZL
   
  --- Volume group ---
  VG Name               sys
  System ID             
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  55
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                7
  Open LV               7
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               13.99 GiB
  PE Size               4.00 MiB
  Total PE              3581
  Alloc PE / Size       2047 / 8.00 GiB
  Free  PE / Size       1534 / 5.99 GiB
  VG UUID               6v3MUT-Hx0y-Ew8P-eVSy-VZoY-nshp-KRnJ2b
   
  --- Physical volume ---
  PV Name               /dev/sdc
  VG Name               homedirs
  PV Size               3.12 TiB / not usable 4.00 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              819199
  Free PE               815615
  Allocated PE          3584
  PV UUID               83oGtI-fMEy-EbAf-L3aD-NhY0-GE7O-iZfywA
   
  --- Physical volume ---
  PV Name               /dev/sda1
  VG Name               sys
  PV Size               10.99 GiB / not usable 462.00 KiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              2814
  Free PE               767
  Allocated PE          2047
  PV UUID               mg8jTQ-shJj-t8eW-qh8w-m6Pq-Cey2-UVhc05
   
  --- Physical volume ---
  PV Name               /dev/sdb
  VG Name               sys
  PV Size               3.00 GiB / not usable 4.00 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              767
  Free PE               767
  Allocated PE          0
  PV UUID               1vq5xj-DpHR-veOT-YYaT-U0m7-iuQ8-K649Nd
   
  --- Logical volume ---
  LV Path                /dev/homedirs/7460
  LV Name                7460
  VG Name                homedirs
  LV UUID                WbEszB-juTY-a7dZ-Fyly-af7n-vGcL-S1j20B
  LV Write Access        read/write
  LV Creation host, time homedirs, 2013-09-25 08:54:12 -0500
  LV Status              available
  # open                 1
  LV Size                14.00 GiB
  Current LE             3584
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1
   
  --- Logical volume ---
  LV Path                /dev/sys/root
  LV Name                root
  VG Name                sys
  LV UUID                COA2bx-GAYE-HtwW-E3UG-6mP5-Pdka-e2kevA
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                2.79 GiB
  Current LE             715
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0
   
  --- Logical volume ---
  LV Path                /dev/sys/boot
  LV Name                boot
  VG Name                sys
  LV UUID                H6JMW9-mS0F-okpg-fVza-p7eg-n0p3-dQLxxf
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                244.00 MiB
  Current LE             61
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2
   
  --- Logical volume ---
  LV Path                /dev/sys/home
  LV Name                home
  VG Name                sys
  LV UUID                krtwUq-sgbd-7n20-xzne-fDGQ-9TUO-xXz3xq
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                952.00 MiB
  Current LE             238
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3
   
  --- Logical volume ---
  LV Path                /dev/sys/var
  LV Name                var
  VG Name                sys
  LV UUID                8MoGXV-YXFy-IOtz-Qlmq-dG1J-mjsR-237Adu
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                1.86 GiB
  Current LE             476
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:4
   
  --- Logical volume ---
  LV Path                /dev/sys/varlog
  LV Name                varlog
  VG Name                sys
  LV UUID                tK8lA2-X36b-VAEk-UHGc-CUNZ-Ki9o-S0MLXK
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                952.00 MiB
  Current LE             238
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:5
   
  --- Logical volume ---
  LV Path                /dev/sys/opt
  LV Name                opt
  VG Name                sys
  LV UUID                IRN0Ut-lVXM-XSck-IgY0-THXd-NU3m-7npwzn
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                952.00 MiB
  Current LE             238
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:6
   
  --- Logical volume ---
  LV Path                /dev/sys/swap
  LV Name                swap
  VG Name                sys
  LV UUID                aL0e7n-DMqf-fbAo-LapZ-w3En-lC50-DjVkeA
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 2
  LV Size                324.00 MiB
  Current LE             81
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:7
   
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Sep 27 09:15 ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001 -> ../../sr0
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-name-homedirs-7460 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-name-sys-boot -> ../../dm-2
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-name-sys-home -> ../../dm-3
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-name-sys-opt -> ../../dm-6
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-name-sys-root -> ../../dm-0
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-name-sys-swap -> ../../dm-7
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-name-sys-var -> ../../dm-4
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-name-sys-varlog -> ../../dm-5
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-uuid-LVM-6v3MUTHx0yEw8PeVSyVZoYnshpKRnJ2b8MoGXVYXFyIOtzQlmqdG1JmjsR237Adu -> ../../dm-4
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-uuid-LVM-6v3MUTHx0yEw8PeVSyVZoYnshpKRnJ2bCOA2bxGAYEHtwWE3UG6mP5Pdkae2kevA -> ../../dm-0
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-uuid-LVM-6v3MUTHx0yEw8PeVSyVZoYnshpKRnJ2bH6JMW9mS0FokpgfVzap7egn0p3dQLxxf -> ../../dm-2
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-uuid-LVM-6v3MUTHx0yEw8PeVSyVZoYnshpKRnJ2bIRN0UtlVXMXSckIgY0THXdNU3m7npwzn -> ../../dm-6
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-uuid-LVM-6v3MUTHx0yEw8PeVSyVZoYnshpKRnJ2baL0e7nDMqffbAoLapZw3EnlC50DjVkeA -> ../../dm-7
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-uuid-LVM-6v3MUTHx0yEw8PeVSyVZoYnshpKRnJ2bkrtwUqsgbd7n20xznefDGQ9TUOxXz3xq -> ../../dm-3
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-uuid-LVM-6v3MUTHx0yEw8PeVSyVZoYnshpKRnJ2btK8lA2X36bVAEkUHGcCUNZKi9oS0MLXK -> ../../dm-5
lrwxrwxrwx 1 root root 10 Sep 27 09:15 dm-uuid-LVM-nWZskgeqHlYFVaUyDqISpFRqCrWLc0ZLWbEszBjuTYa7dZFylyaf7nvGcLS1j20B -> ../../dm-1
lrwxrwxrwx 1 root root  9 Sep 27 09:15 scsi-3600a0b800026f4f80000150d52307818 -> ../../sdc
lrwxrwxrwx 1 root root  9 Sep 27 09:15 wwn-0x600a0b800026f4f80000150d52307818 -> ../../sdc
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Sep 27 09:15 0a5c6e3c-d8ee-4dd2-99b9-76330259b629 -> ../../dm-6
lrwxrwxrwx 1 root root 10 Sep 27 09:15 3c58fae4-c50b-4a95-8445-185317c5e3fb -> ../../dm-7
lrwxrwxrwx 1 root root 10 Sep 27 09:15 459e051b-ddcb-44b4-8acb-086cc2d1030d -> ../../dm-4
lrwxrwxrwx 1 root root 10 Sep 27 09:15 89e952f3-c83a-4911-bab9-7c8f5a1b8228 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Sep 27 09:15 9b3ebabd-bf57-4a34-96fc-dee2e9cb8c85 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Sep 27 09:15 9be53860-3503-4379-b154-4103d950b378 -> ../../dm-5
lrwxrwxrwx 1 root root 10 Sep 27 09:15 ad910398-fedc-41eb-95fa-8662dc70c8c8 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Sep 27 09:15 d19dfc15-d628-44da-a4e7-97269b289293 -> ../../dm-0
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-3-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.51
ii  grub-common            2.00-19
ii  grub-pc-bin            2.00-19
ii  grub2-common           2.00-19
ii  ucf                    3.0027+nmu1

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub-pc/kopt_extracted: false
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/chainload_from_menu.lst: true
  grub-pc/install_devices_failed_upgrade: true
* grub2/linux_cmdline:
  grub-pc/partition_description:
* grub2/linux_cmdline_default: quiet
  grub2/device_map_regenerated:
  grub-pc/mixed_legacy_and_grub2: true
  grub-pc/install_devices_disks_changed:
  grub-pc/postrm_purge_boot_grub: false
* grub-pc/install_devices: /dev/sda
  grub-pc/install_devices_empty: false
  grub-pc/disk_description:
  grub2/kfreebsd_cmdline:
* grub-pc/install_devices_failed: true



This email transmission and any documents, files or previous
email messages attached to it may contain information that is
confidential or legally privileged. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
printing, distributing or use of this transmission is strictly
prohibited. If you have received this transmission in error,
please immediately notify the sender by telephone or return
email and delete the original transmission and its attachments
without reading or saving in any manner.

The Evangelical Lutheran Good Samaritan Society.



More information about the Pkg-grub-devel mailing list