Bug#661567: grub-common: update-grub prints error message about grep
Julian Calaby
julian.calaby at gmail.com
Tue Feb 28 02:57:59 UTC 2012
Package: grub-common
Version: 1.99-14
Severity: minor
Dear Maintainer,
When calling update-grub, grep complains:
grep: input file `/boot/grub/grub.cfg.new' is also the output
grub.cfg is still generated properly, however this may be distressing for new
users and people reading log files.
It can be simply fixed by adding the line:
exec > /dev/null
just before the 'grep -q "^password "' call on line #298 of the "grub-mkconfig"
script or adding a "> /dev/null" to that grep invocation.
I consider this change to be too trivial to copyright.
Making this change silences the message and is safe as all output to the
specified configuration file has already occurred at this point.
Leaving this as is may cause any password lines within the generated
configuration to be duplicated at the bottom of the file, depending on whether
grep decides to output any text.
Thanks,
Julian Calaby
-- System Information:
Debian Release: wheezy/sid
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-common depends on:
ii gettext-base 0.18.1.1-5
ii libc6 2.13-26
ii libdevmapper1.02.1 2:1.02.67-2
ii libfreetype6 2.4.8-1
ii libfuse2 2.8.6-4
ii zlib1g 1:1.2.6.dfsg-1
Versions of packages grub-common recommends:
pn os-prober <none>
Versions of packages grub-common suggests:
pn desktop-base 6.0.7
pn grub-emu <none>
pn multiboot-doc <none>
pn xorriso <none>
-- no debconf information
More information about the Pkg-grub-devel
mailing list