[Bug 934269] Re: grub-mkconfig (running as update-grub) gives scary message "grep: input file '/tmp/grub.cfg.new' is also the output"

Launchpad Bug Tracker 934269 at bugs.launchpad.net
Tue Mar 6 03:56:17 UTC 2012


** Branch linked: lp:debian/grub2

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/934269

Title:
  grub-mkconfig (running as update-grub) gives scary message "grep:
  input file '/tmp/grub.cfg.new' is also the output"

Status in “grub2” package in Ubuntu:
  Fix Committed

Bug description:
  Running update-grub gives the error:

      grep: input file '/tmp/grub.cfg.new' is also the output

  This problem is caused by a combination of...

      250   exec > ${grub_cfg}.new

  and ...

      285 if [ "x${grub_cfg}" != "x" ] && ! grep -q "^password "
  ${grub_cfg}.new ; then

  effectively resulting in:

  grep -q "^password" /tmp/grub.cfg.new > /tmp/grub.cfg.new

  Problem is in patch debian/patches/grub.cfg_400.patch.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: grub2 (not installed)
  ProcVersionSignature: Ubuntu 3.2.0-16.25-generic-pae 3.2.6
  Uname: Linux 3.2.0-16-generic-pae i686
  NonfreeKernelModules: nvidia
  ApportVersion: 1.91-0ubuntu1
  Architecture: i386
  Date: Fri Feb 17 15:17:54 2012
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: grub2
  UpgradeStatus: Upgraded to precise on 2012-01-12 (36 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/934269/+subscriptions




More information about the foundations-bugs mailing list