Bug#729415: grub-pc: bug report script assumes console

2013-11-12 Thread Jamin W. Collins
Package: grub-pc
Version: 1.99-27+deb7u2
Severity: normal

The bug report script /usr/share/bug/grub-pc/script prompts the user on the
terminal/console irregardless of the interface the user has selected for
reportbug.  Thus, if the user is using the GTK interface all they see is that
additional information is being collected, not that they are being prompted for
action on the terminal/console.



-- Package-specific info:

*** BEGIN /proc/mounts
/dev/mapper/vg0-root / xfs rw,relatime,attr2,inode64,noquota 0 0
/dev/mapper/vg0-home /home xfs rw,relatime,attr2,inode64,noquota 0 0
/dev/mapper/vg0-log /var/log xfs rw,relatime,attr2,inode64,noquota 0 0
/dev/mmcblk0p1 /media/jamin/keys ext3 
rw,nosuid,nodev,relatime,errors=continue,barrier=1,data=ordered 0 0
*** END /proc/mounts

*** BEGIN /boot/grub/device.map
(hd0)   /dev/disk/by-id/memstick-MS_0x79001edd
(hd1)   /dev/disk/by-id/ata-TOSHIBA_THNSNS128GMCP_42HS10GSTWRZ
(hd2)   /dev/disk/by-id/usb-SanDisk_Cruzer_Edge_20042906101E0E704FCC-0:0
*** 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 lvm
insmod part_msdos
insmod xfs
set root='(vg0-root)'
search --no-floppy --fs-uuid --set=root bbad0904-e653-4fd3-a5bf-e5a04d870122
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod lvm
  insmod part_msdos
  insmod xfs
  set root='(vg0-root)'
  search --no-floppy --fs-uuid --set=root bbad0904-e653-4fd3-a5bf-e5a04d870122
  set locale_dir=($root)/boot/grub/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 ###
insmod lvm
insmod part_msdos
insmod xfs
set root='(vg0-root)'
search --no-floppy --fs-uuid --set=root bbad0904-e653-4fd3-a5bf-e5a04d870122
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 ###
menuentry 'Debian GNU/Linux, with Linux 3.10-3-amd64' --class debian --class 
gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod lvm
insmod part_msdos
insmod xfs
set root='(vg0-root)'
search --no-floppy --fs-uuid --set=root 
bbad0904-e653-4fd3-a5bf-e5a04d870122
echo'Loading Linux 3.10-3-amd64 ...'
linux   /boot/vmlinuz-3.10-3-amd64 root=/dev/mapper/vg0-root ro 
initrd=/install/gtk/initrd.gz quiet
echo'Loading initial ramdisk ...'
initrd  /boot/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 {
load_video
insmod gzio
insmod lvm
insmod part_msdos
insmod xfs
set root='(vg0-root)'
search --no-floppy --fs-uuid --set=root 
bbad0904-e653-4fd3-a5bf-e5a04d870122
echo'Loading Linux 3.10-3-amd64 ...'
linux   /boot/vmlinuz-3.10-3-amd64 root=/dev/mapper/vg0-root ro single 
initrd=/install/gtk/initrd.gz
echo'Loading initial ramdisk ...'
initrd  /boot/initrd.img-3.10-3-amd64
}
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 lvm
insmod part_msdos
insmod xfs
set root='(vg0-root)'
search --no-floppy --fs-uuid --set=root 
bbad0904-e653-4fd3-a5bf-e5a04d870122
echo'Loading Linux 3.2.0-4-amd64 ...'
linux   /boot/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vg0-root ro 
initrd=/install/gtk/initrd.gz quiet
echo'Loading initial ramdisk ...'
initrd  /boot/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 lvm
insmod part_msdos
insmod xfs
set root='(vg0-root)'
search --no-floppy --fs-uuid --set=root 
bbad0904-e653-4fd3-a5bf-e5a04d870122
echo'Loading Linux 3.2.0-4-amd64 ...'
linux   

Bug#729415: grub-pc: bug report script assumes console

2013-11-12 Thread Colin Watson
Control: reassign -1 reportbug
Control: retitle -1 reportbug: yesno/getkey helper functions assume console

On Tue, Nov 12, 2013 at 09:15:10AM -0800, Jamin W. Collins wrote:
 The bug report script /usr/share/bug/grub-pc/script prompts the user on the
 terminal/console irregardless of the interface the user has selected for
 reportbug.  Thus, if the user is using the GTK interface all they see is that
 additional information is being collected, not that they are being prompted 
 for
 action on the terminal/console.

This feels to me like a bug in reportbug itself.  If it's going to
provide abstracted helper functions like yesno, they should deal with
abstracting over frontends too.

Perhaps this is related to #669038.

Thanks,

-- 
Colin Watson   [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org