grub-update: bad 'grep' and 'lvs' invocations

Bug #911225 reported by Martin-Éric Racine
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-7-generic
Found initrd image: /boot/initrd.img-3.2.0-7-generic
Found linux image: /boot/vmlinuz-3.2.0-6-generic
Found initrd image: /boot/initrd.img-3.2.0-6-generic
Found memtest86+ image: /boot/memtest86+.bin
File descriptor 3 (pipe:[29265]) leaked on lvs invocation. Parent PID 3157: /bin/sh
  No volume groups found
grep: input file ”/boot/grub/grub.cfg.new” is also the output
done

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: grub2-common 1.99-14ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-7.13-generic 3.2.0-rc7
Uname: Linux 3.2.0-7-generic i586
ApportVersion: 1.90-0ubuntu1
Architecture: i386
Date: Tue Jan 3 15:21:36 2012
SourcePackage: grub2
UpgradeStatus: Upgraded to precise on 2009-02-07 (1060 days ago)

Revision history for this message
Martin-Éric Racine (q-funk) wrote :
Andy Whitcroft (apw)
Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Andy Whitcroft (apw) wrote :

The grep in question in grub-mkconfig seems quite reasonable. This may well be a grep bug. Investigating.

Revision history for this message
Andy Whitcroft (apw) wrote :

Ok so this is a grub issue. Grub is incorrectly using grep to look for content in the file it has also connected to its output. Although grep is in silent mode this is still not permitted. Will spin a patch to clear that up.

Revision history for this message
Colin Watson (cjwatson) wrote :

The grep part is also bug 934269, now fixed. The lvs part: odd because grub2 doesn't invoke lvs itself, only via os-prober as far as I know, and os-prober is already supposed to set an environment variable to suppress those warnings ...

Revision history for this message
Martin-Éric Racine (q-funk) wrote :

Apparently not fixed:

[2012-03-06 17:33](UBUNTU)meracine@eesti:~$ LC_ALL=C sudo update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-18-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-18-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-17-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-17-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
grep: input file `/boot/grub/grub.cfg.new' is also the output
done

Revision history for this message
Martin-Éric Racine (q-funk) wrote :

Sure enough, just as soon as I had posted the above, a new GRUB2 package entered the Precise mirror and it works:

Setting up grub-common (1.99-16ubuntu1) ...
Installing new version of config file /etc/grub.d/00_header ...
Installing new version of config file /etc/grub.d/10_linux ...
Installing new version of config file /etc/grub.d/20_linux_xen ...
Installing new version of config file /etc/grub.d/30_os-prober ...
Installing new version of config file /etc/bash_completion.d/grub ...
Setting up grub2-common (1.99-16ubuntu1) ...
Setting up grub-pc-bin (1.99-16ubuntu1) ...
Setting up grub-pc (1.99-16ubuntu1) ...
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-18-generic
Found initrd image: /boot/initrd.img-3.2.0-18-generic
Found linux image: /boot/vmlinuz-3.2.0-17-generic
Found initrd image: /boot/initrd.img-3.2.0-17-generic
Found memtest86+ image: /boot/memtest86+.bin
Found iPXE image : /boot/ipxe.lkrn
  No volume groups found
done

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in grub2 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

Changed in grub2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.