Bug#760997: /usr/sbin/grub-install: unicode.pf2 is installed twice in /boot, wasting space

Zack Weinberg zackw at panix.com
Tue Sep 9 18:44:30 UTC 2014


Package: grub2-common
Version: 2.02~beta2-11
Severity: normal
File: /usr/sbin/grub-install

Installing GRUB with the graphical terminal enabled causes unicode.pf2 to
be installed in both /boot/grub and /boot/grub/fonts.  This is a large file
(2.3MB) so having two copies of it may be the difference between having enough
space, and *not* having enough space, in a tiny /boot partition.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/e349b464-417f-4951-94cb-ff8cc0534909 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda4 /boot ext4 rw,relatime,data=ordered 0 0
/dev/sda7 /home ext4 rw,relatime,data=ordered 0 0
/dev/sdb /media/zack/35EE-1E0E vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=437,iocharset=utf8,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0
*********************** END /proc/mounts

*********************** 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
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

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 ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  e349b464-417f-4951-94cb-ff8cc0534909
else
  search --no-floppy --fs-uuid --set=root e349b464-417f-4951-94cb-ff8cc0534909
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  e349b464-417f-4951-94cb-ff8cc0534909
else
  search --no-floppy --fs-uuid --set=root e349b464-417f-4951-94cb-ff8cc0534909
fi
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e349b464-417f-4951-94cb-ff8cc0534909' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos4'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  09a2ca59-120e-44bd-b7b3-49ac5af83d11
	else
	  search --no-floppy --fs-uuid --set=root 09a2ca59-120e-44bd-b7b3-49ac5af83d11
	fi
	echo	'Loading Linux 3.16-1-amd64 ...'
	linux	/vmlinuz-3.16-1-amd64 root=UUID=e349b464-417f-4951-94cb-ff8cc0534909 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.16-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e349b464-417f-4951-94cb-ff8cc0534909' {
	menuentry 'Debian GNU/Linux, with Linux 3.16-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16-1-amd64-advanced-e349b464-417f-4951-94cb-ff8cc0534909' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  09a2ca59-120e-44bd-b7b3-49ac5af83d11
		else
		  search --no-floppy --fs-uuid --set=root 09a2ca59-120e-44bd-b7b3-49ac5af83d11
		fi
		echo	'Loading Linux 3.16-1-amd64 ...'
		linux	/vmlinuz-3.16-1-amd64 root=UUID=e349b464-417f-4951-94cb-ff8cc0534909 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16-1-amd64-recovery-e349b464-417f-4951-94cb-ff8cc0534909' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  09a2ca59-120e-44bd-b7b3-49ac5af83d11
		else
		  search --no-floppy --fs-uuid --set=root 09a2ca59-120e-44bd-b7b3-49ac5af83d11
		fi
		echo	'Loading Linux 3.16-1-amd64 ...'
		linux	/vmlinuz-3.16-1-amd64 root=UUID=e349b464-417f-4951-94cb-ff8cc0534909 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-2-amd64-advanced-e349b464-417f-4951-94cb-ff8cc0534909' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  09a2ca59-120e-44bd-b7b3-49ac5af83d11
		else
		  search --no-floppy --fs-uuid --set=root 09a2ca59-120e-44bd-b7b3-49ac5af83d11
		fi
		echo	'Loading Linux 3.14-2-amd64 ...'
		linux	/vmlinuz-3.14-2-amd64 root=UUID=e349b464-417f-4951-94cb-ff8cc0534909 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.14-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-2-amd64-recovery-e349b464-417f-4951-94cb-ff8cc0534909' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  09a2ca59-120e-44bd-b7b3-49ac5af83d11
		else
		  search --no-floppy --fs-uuid --set=root 09a2ca59-120e-44bd-b7b3-49ac5af83d11
		fi
		echo	'Loading Linux 3.14-2-amd64 ...'
		linux	/vmlinuz-3.14-2-amd64 root=UUID=e349b464-417f-4951-94cb-ff8cc0534909 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.14-2-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 ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-068443F58443E5B1' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  068443F58443E5B1
	else
	  search --no-floppy --fs-uuid --set=root 068443F58443E5B1
	fi
	parttool ${root} hidden-
	chainloader +1
}
menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-D88C4A698C4A41EC' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  D88C4A698C4A41EC
	else
	  search --no-floppy --fs-uuid --set=root D88C4A698C4A41EC
	fi
	parttool ${root} hidden-
	chainloader +1
}
### 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 /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Sep  9 13:18 ata-Hitachi_HDS721010CLA632_JP2940J82X5Y8V -> ../../sda
lrwxrwxrwx 1 root root 10 Sep  9 13:18 ata-Hitachi_HDS721010CLA632_JP2940J82X5Y8V-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  9 13:18 ata-Hitachi_HDS721010CLA632_JP2940J82X5Y8V-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  9 13:18 ata-Hitachi_HDS721010CLA632_JP2940J82X5Y8V-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep  9 13:18 ata-Hitachi_HDS721010CLA632_JP2940J82X5Y8V-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Sep  9 13:18 ata-Hitachi_HDS721010CLA632_JP2940J82X5Y8V-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep  9 13:18 ata-Hitachi_HDS721010CLA632_JP2940J82X5Y8V-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep  9 13:18 ata-Hitachi_HDS721010CLA632_JP2940J82X5Y8V-part7 -> ../../sda7
lrwxrwxrwx 1 root root  9 Sep  9 13:18 ata-hp_BD_DRV_BD-5841H5_1015637E21 -> ../../sr0
lrwxrwxrwx 1 root root  9 Sep  9 13:21 usb-Google_File-CD_Gadget_39346CF5A23800EC-0:0 -> ../../sdb
lrwxrwxrwx 1 root root  9 Sep  9 13:18 wwn-0x5000cca396e8ffb6 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep  9 13:18 wwn-0x5000cca396e8ffb6-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  9 13:18 wwn-0x5000cca396e8ffb6-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  9 13:18 wwn-0x5000cca396e8ffb6-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep  9 13:18 wwn-0x5000cca396e8ffb6-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Sep  9 13:18 wwn-0x5000cca396e8ffb6-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep  9 13:18 wwn-0x5000cca396e8ffb6-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep  9 13:18 wwn-0x5000cca396e8ffb6-part7 -> ../../sda7
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Sep  9 13:18 068443F58443E5B1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  9 13:18 09a2ca59-120e-44bd-b7b3-49ac5af83d11 -> ../../sda4
lrwxrwxrwx 1 root root  9 Sep  9 13:21 35EE-1E0E -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep  9 13:18 74500b3d-a57f-4756-9704-4f56a3db4ba5 -> ../../sda7
lrwxrwxrwx 1 root root 10 Sep  9 13:18 D88C4A698C4A41EC -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  9 13:18 e349b464-417f-4951-94cb-ff8cc0534909 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep  9 13:18 e7e5eda3-11a7-4abd-8561-7be30d409f55 -> ../../sda5
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/8 CPU cores)
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 grub2-common depends on:
ii  dpkg                1.17.13
ii  grub-common         2.02~beta2-11
ii  install-info        5.2.0.dfsg.1-4
ii  libc6               2.19-10
ii  libdevmapper1.02.1  2:1.02.90-1
ii  liblzma5            5.1.1alpha+20120614-2

grub2-common recommends no packages.

grub2-common suggests no packages.

-- no debconf information



More information about the Pkg-grub-devel mailing list