grub-mkconfig (running as update-grub) gives scary message "grep: input file '/tmp/grub.cfg.new' is also the output"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Medium
|
Adam Conrad |
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/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: grub2 (not installed)
ProcVersionSign
Uname: Linux 3.2.0-16-
NonfreeKernelMo
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)
Related branches
Changed in grub2 (Ubuntu): | |
importance: | Undecided → Medium |
Similar bug 915008