Bug#510771: grub-pc: [update-grub] does not show output to stdout

Luca Capello luca at pca.it
Sun Jan 4 19:42:01 UTC 2009


Package: grub-pc
Version: 1.96+20080724-12
Severity: minor

Hi there!

While calling update-grub from a local script I found that update-grub
shows all its output to stderr:
=====
root at gismo:/home/luca# update-grub >/dev/null && echo OK
Updating /boot/grub/grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.27-1-amd64
Found initrd image: /boot/initrd.img-2.6.27-1-amd64
Found linux image: /boot/vmlinuz-2.6.26-trunk-amd64
Found initrd image: /boot/initrd.img-2.6.26-trunk-amd64
Found linux image: /boot/vmlinuz-2.6.26-1-amd64
Found initrd image: /boot/initrd.img-2.6.26-1-amd64
done
OK
root at gismo:/home/luca# update-grub 2>/dev/null && echo OK
OK
root at gismo:/home/luca#
=====

I cannot find any rationale for this and I really think that most of the
output should go to stdout.

Thx, bye,
Gismo / Luca

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/vggismo-lvroot / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /boot ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vggismo-lvhome /home ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vggismo-lvchroot /mnt/chroot ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vggismo-lvlab /mnt/lab ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vggismo-lvmovies /mnt/movies ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vggismo-lvmusic /mnt/music ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vggismo-lvpictures /mnt/pictures ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

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

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

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
search --fs-uuid --set 007f4d6e-94b1-4515-8e41-3f437a9c3484
if font /grub/ascii.pff ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### 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_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
set root=(hd0,1)
search --fs-uuid --set 007f4d6e-94b1-4515-8e41-3f437a9c3484
menuentry "Debian GNU/Linux, linux 2.6.27-1-amd64" {
	linux	/vmlinuz-2.6.27-1-amd64 root=/dev/mapper/vggismo-lvroot ro panic=10 vga=792 splash 
	initrd	/initrd.img-2.6.27-1-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.27-1-amd64 (single-user mode)" {
	linux	/vmlinuz-2.6.27-1-amd64 root=/dev/mapper/vggismo-lvroot ro single panic=10 vga=792 splash
	initrd	/initrd.img-2.6.27-1-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.26-trunk-amd64" {
	linux	/vmlinuz-2.6.26-trunk-amd64 root=/dev/mapper/vggismo-lvroot ro panic=10 vga=792 splash 
	initrd	/initrd.img-2.6.26-trunk-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.26-trunk-amd64 (single-user mode)" {
	linux	/vmlinuz-2.6.26-trunk-amd64 root=/dev/mapper/vggismo-lvroot ro single panic=10 vga=792 splash
	initrd	/initrd.img-2.6.26-trunk-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-amd64" {
	linux	/vmlinuz-2.6.26-1-amd64 root=/dev/mapper/vggismo-lvroot ro panic=10 vga=792 splash 
	initrd	/initrd.img-2.6.26-1-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-amd64 (single-user mode)" {
	linux	/vmlinuz-2.6.26-1-amd64 root=/dev/mapper/vggismo-lvroot ro single panic=10 vga=792 splash
	initrd	/initrd.img-2.6.26-1-amd64
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-1-amd64 (SMP w/2 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 grub-pc depends on:
ii  debconf [debconf-2.0]   1.5.24           Debian configuration management sy
ii  grub-common             1.96+20080724-12 GRand Unified Bootloader, version 
ii  libc6                   2.7-17           GNU C Library: Shared libraries
ii  liblzo2-2               2.03-1           data compression library
ii  libncurses5             5.7+20081220-1   shared libraries for terminal hand

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)
pn  os-prober                     <none>     (no description available)

-- debconf information:
  grub-pc/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20090104/8195fba9/attachment.pgp 


More information about the Pkg-grub-devel mailing list