Bug #426061 reported by Roger E Critchlow Jr on 2009-09-08
This bug affects 5 people
Affects Status Importance Assigned to Milestone
os-prober (Ubuntu)
Colin Watson

Bug Description

Binary package hint: os-prober

update-grub2 reports:

root@elf11:~# update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-9-generic
Found initrd image: /boot/initrd.img-2.6.31-9-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sda1
Found Windows NT/2000/XP on /dev/sda2
Found Ubuntu 8.10 (8.10) on /dev/sda6
Found Ubuntu karmic (development branch) (9.10) on /dev/sda7
Found Ubuntu karmic (development branch) (9.10) on /dev/sda8

but grub.cfg fails to include boot records for /dev/sda6, /dev/sda7, /dev/sda8.

Examining the log records generated by linux-boot-prober revealed that:

  linux-boot-prober /dev/sda6


  Sep 7 21:01:18 elf11 linux-boot-prober: Device '' does not exist; skipping

I changed



  newns "$@"

which results in the device argument being passed correctly and the correct records being generated in grub.cfg.

-- rec --

lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10
root@elf11:~# apt-cache policy os-prober
  Installed: 1.31
  Candidate: 1.31
  Version table:
 *** 1.31 0
        500 karmic/main Packages
        100 /var/lib/dpkg/status

dino99 (9d9) wrote :

have made the change proposed by Roger: newns ----> ! newns "$@"

that work perfectly

Dean Loros (autocrosser) wrote :

This also corrected my problem.

dino99 (9d9) wrote :

Since my previous post above, i've rebooted & grub2 menu do not show me all the distro. Strange because i've ran grub-mkconfig & it was complete, but seem that it has not been saved.

So, i run again :
sudo os-prober : still don't find all the distro
sudo update-grub2 : nothing added
sudo grub-mkconfig : everything is found

run again:
sudo update-grub2

and reboot

Good, grub menu is now complete & it boot fine.

So, there is still something wrong about os-prober.

All this on Karmic 32 with the latest upgrades.

Colin Watson (cjwatson) on 2009-09-08
Changed in os-prober (Ubuntu):
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Colin Watson (cjwatson)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package os-prober - 1.32

os-prober (1.32) unstable; urgency=low

  * Pass arguments properly to newns (thanks, Roger E Critchlow Jr; LP:

 -- Colin Watson <email address hidden> Tue, 08 Sep 2009 12:33:12 +0100

Changed in os-prober (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers