Bug#717477: grub-pc: Unable to reconfigure grub using dpkg-reconfigure grub-pc, if initially installed with DEBIAN_FRONTEND=noninteractive

Mark De Souza mark at mvoice.com.au
Sun Jul 21 09:25:35 UTC 2013


Package: grub-pc
Version: 1.99-27+deb7u1
Severity: normal

Dear Maintainer,

When installed normally, running "dpkg-reconfigure grub-pc" will ask 3 questions: 
- Linux command line
- Linux default command line
- Which drive to install to

When grub is installed with DEBIAN_FRONTEND=noninteractive, running "dpkg-reconfigure grub-pc" will ask the first 2 questions.

The only way to fix the issue is to purge and reinstall:
dpkg --purge grub-pc grub2
apt-get install grub2
 


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/02aa9870-843a-4f0d-9bfd-596411378919 / ext4 rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered 0 0
/dev/sdb2 / ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sdb1 /boot ext2 rw,relatime,errors=continue,user_xattr,acl 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-VBOX_HARDDISK_VBcc55f4dd-5a85ac44
(hd1)	/dev/disk/by-id/ata-VBOX_HARDDISK_VBfb20cb7f-a2c21b12
*********************** 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 [ "${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 {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set=root c014b4da-dc99-43cd-9f22-56abad6a05aa
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd1,msdos1)'
  search --no-floppy --fs-uuid --set=root c9ba9821-fa7f-4438-be58-3fe0e15e0715
  set locale_dir=($root)/grub/locale
  set lang=en_AU
  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, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root c9ba9821-fa7f-4438-be58-3fe0e15e0715
	echo	'Loading Linux 3.2.0-4-amd64 ...'
	linux	/vmlinuz-3.2.0-4-amd64 root=UUID=c014b4da-dc99-43cd-9f22-56abad6a05aa ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.2.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root c9ba9821-fa7f-4438-be58-3fe0e15e0715
	echo	'Loading Linux 3.2.0-4-amd64 ...'
	linux	/vmlinuz-3.2.0-4-amd64 root=UUID=c014b4da-dc99-43cd-9f22-56abad6a05aa ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.2.0-4-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/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root c9ba9821-fa7f-4438-be58-3fe0e15e0715
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root c9ba9821-fa7f-4438-be58-3fe0e15e0715
	linux16	/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

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

### 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  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
Personalities : 
unused devices: <none>
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Jul 21 18:00 ata-VBOX_CD-ROM_VB2-01700376 -> ../../sr0
lrwxrwxrwx 1 root root  9 Jul 21 18:00 ata-VBOX_HARDDISK_VBcc55f4dd-5a85ac44 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 21 18:00 ata-VBOX_HARDDISK_VBcc55f4dd-5a85ac44-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 21 18:00 ata-VBOX_HARDDISK_VBcc55f4dd-5a85ac44-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Jul 21 19:15 ata-VBOX_HARDDISK_VBfb20cb7f-a2c21b12 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jul 21 18:00 ata-VBOX_HARDDISK_VBfb20cb7f-a2c21b12-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul 21 18:00 ata-VBOX_HARDDISK_VBfb20cb7f-a2c21b12-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jul 21 18:00 ata-VBOX_HARDDISK_VBfb20cb7f-a2c21b12-part3 -> ../../sdb3
lrwxrwxrwx 1 root root  9 Jul 21 18:00 scsi-SATA_VBOX_HARDDISK_VBcc55f4dd-5a85ac44 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 21 18:00 scsi-SATA_VBOX_HARDDISK_VBcc55f4dd-5a85ac44-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 21 18:00 scsi-SATA_VBOX_HARDDISK_VBcc55f4dd-5a85ac44-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Jul 21 19:15 scsi-SATA_VBOX_HARDDISK_VBfb20cb7f-a2c21b12 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jul 21 18:00 scsi-SATA_VBOX_HARDDISK_VBfb20cb7f-a2c21b12-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul 21 18:00 scsi-SATA_VBOX_HARDDISK_VBfb20cb7f-a2c21b12-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jul 21 18:00 scsi-SATA_VBOX_HARDDISK_VBfb20cb7f-a2c21b12-part3 -> ../../sdb3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jul 21 18:00 02aa9870-843a-4f0d-9bfd-596411378919 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jul 21 18:00 541381ce-8a95-4d97-acb7-26b3bef293a8 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 21 18:00 c014b4da-dc99-43cd-9f22-56abad6a05aa -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jul 21 18:00 c9ba9821-fa7f-4438-be58-3fe0e15e0715 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul 21 18:00 e582bc3d-226f-47e6-8d87-40ffcebc0888 -> ../../sdb3
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.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.49
ii  grub-common            1.99-27+deb7u1
ii  grub-pc-bin            1.99-27+deb7u1
ii  grub2-common           1.99-27+deb7u1
ii  ucf                    3.0025+nmu3

grub-pc recommends no packages.

grub-pc suggests no packages.

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



More information about the Pkg-grub-devel mailing list