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

Felix Zielcke fzielcke at z-51.de
Fri Jul 24 11:57:48 UTC 2009


tag 510771 wontfix
thanks

Am Sonntag, den 04.01.2009, 20:42 +0100 schrieb Luca Capello:
> 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.
> 

Hi,

update-grub is now just a stub to grub-mkconfig which prints config by
default to stdout.
It's just now so designed and I doubt we make the effort to change this.
It wouldn't be easy because we call the scripts in /etc/grub.d/* which
prints to stdout their config.
For example just see /etc/grub.d/40_custom
If we would change this then any user having a custom script (and for
example memtest86/memtest86+) need to be changed too.
I don't think it's worth the effort but maybe someone can provide a
patch for this.

-- 
Felix Zielcke






More information about the Pkg-grub-devel mailing list