Public bug reported: 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) ** Affects: grub2 (Ubuntu) Importance: Undecided Status: New ** Tags: apport-bug i386 precise -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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" To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/934269/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs