update-grub reports grep error 'input file ... is also the output'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I upgraded from oneiric to precise after backing up my oneiric partition to /dev/sda5, and when I run update-grub I get this error:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found Ubuntu 11.10 (11.10) on /dev/sda5
grep: input file U+2018/
The resulting grub.cfg file has this entry:
### BEGIN /etc/grub.
menuentry "Debian, with Linux 3.3.0-rc5-
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 193832bf-
linux /boot/vmlinuz-
initrd /boot/initrd.
}
ie grub has detected the oneiric backup partition, but failed to update the grub.cfg file correctly (the uuid for the 'search' is the correct uuid for this partition, but the uuid for the 'linux' entry is wrong).
Trying to boot from the oneiric partition of course then fails because it looks for the wrong partition.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: grub-pc 1.99-14ubuntu2
Uname: Linux 3.3.0-rc5-
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Fri Mar 2 22:41:45 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
LANGUAGE=en_AU:en
TERM=xterm
LANG=en_AU.UTF-8
SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: Upgraded to precise on 2012-03-02 (0 days ago)