Not all OS shown in grub-install screen at end of installation

Bug #963471 reported by Jane Atkinson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
High
Colin Watson
os-prober (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

Testing Precise beta2 alternate install. I have two internal SATA drives. My working OS are all on /dev/sdb and I'm installing to /dev/sda

At the screen where the user is asked where to install Grub, not all the OS on my machine are being listed. It mentions two of them - Vista and Lucid - but doesn't refer to the existing Precise install on the same drive.

This wasn't happening in beta1. At that time, though, I had working OS on both drives. (Should that make a difference?)

Although all OS show up in the Grub boot menu on reboot, this message could cause some users to think that there's an error.

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/963471

tags: added: iso-testing
Revision history for this message
Colin Watson (cjwatson) wrote :

Could you attach /var/log/installer/syslog and /var/log/installer/partman after this installation?

Changed in debian-installer (Ubuntu):
status: New → Incomplete
Revision history for this message
Jane Atkinson (irihapeti) wrote :

Logs are attached

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

Thanks. The proximate cause of this is that /dev/sdb5 requires recovery, which means that it can't be mounted normally. Now, I thought that we'd fixed that class of problem using grub-mount. However, grub-mount appears not to be working properly in the installer environment, which causes these symptoms.

affects: debian-installer (Ubuntu) → grub-installer (Ubuntu)
Changed in grub-installer (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → High
status: Incomplete → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

In fact I believe the problem is that os-prober is trying to use the 'which' tool, which is not available in d-i.

affects: grub-installer (Ubuntu) → os-prober (Ubuntu)
Revision history for this message
Colin Watson (cjwatson) wrote :

Furthermore, this is going to require grub-probe to be added to grub2. That means this will have to be post-beta2, I think.

Changed in os-prober (Ubuntu):
status: Confirmed → Triaged
Changed in grub2 (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
Changed in os-prober (Ubuntu):
milestone: none → ubuntu-12.04
Changed in grub2 (Ubuntu):
milestone: none → ubuntu-12.04
Colin Watson (cjwatson)
tags: added: rls-p-tracking
Changed in os-prober (Ubuntu):
status: Triaged → In Progress
Changed in grub2 (Ubuntu):
status: Triaged → In Progress
Colin Watson (cjwatson)
Changed in os-prober (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package os-prober - 1.51ubuntu1

---------------
os-prober (1.51ubuntu1) precise; urgency=low

  * Resynchronise with Debian. Remaining changes:
    - Mount btrfs subvolume @ when present to access a btrfs formatted
      rootfs.

os-prober (1.51) unstable; urgency=low

  [ Joey Hess ]
  * Relax the MS-DOS detection again now that it will not cause
    false positives for non-FAT filesystems.

  [ Colin Watson ]
  * Use 'type' rather than 'which' to test for grub-mount, as d-i doesn't
    have 'which'. Also test for grub-probe before using it, as that isn't
    currently in grub-mount-udeb and I'm going to need to add it
    (LP: #963471).
 -- Colin Watson <email address hidden> Tue, 27 Mar 2012 18:48:08 +0100

Changed in os-prober (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Jane Atkinson (irihapeti) wrote :

I tested the alternate install CD of 20120330. This time, the message just before grub-install said that it could find only one OS on /dev/sdb: Vista, which is the only primary partition on the drive. Previously, it was finding Lucid as well (logical partition).

On reboot, all OS were shown correctly in the grub screen.

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 963471] Re: Not all OS shown in grub-install screen at end of installation

I know, I've only fixed half this bug so far and wasn't expecting the
whole thing to be fixed yet. :-)

Revision history for this message
Jane Atkinson (irihapeti) wrote :

Apologies. Sounds like I got ahead of myself. :) I'll wait for further instructions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 1.99-20ubuntu1

---------------
grub2 (1.99-20ubuntu1) precise; urgency=low

  * Resynchronise with Debian. Remaining changes:
    - Adjust for default Ubuntu boot options ("quiet splash").
    - Default to hiding the menu; holding down Shift at boot will show it.
    - Set a monochromatic theme and an appropriate background for Ubuntu.
    - Apply Ubuntu GRUB Legacy changes to legacy update-grub script.
    - Fix backslash-escaping in merge_debconf_into_conf.
    - Remove "GNU/Linux" from default distributor string.
    - Add crashkernel option.
    - Bypass menu unless other OSes are installed or Shift is pressed.
    - Allow Shift to interrupt 'sleep --interruptible'.
    - Reduce visual clutter in normal mode.
    - Remove verbose messages printed before reading configuration.
    - Suppress kernel/initrd progress messages, except in recovery mode.
    - Show the boot menu if the previous boot failed.
    - Don't generate device.map during grub-install or grub-mkconfig.
    - Adjust upgrade version checks for Ubuntu.
    - Suppress "GRUB loading" message unless Shift is held down.
    - Adjust versions of grub-doc and grub-legacy-doc conflicts.
    - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
    - Look for .mo files in /usr/share/locale-langpack first.
    - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
    - Check hardware support before using gfxpayload=keep.
    - Put second and subsequent Linux menu entries in a submenu.
    - Preferred resolution detection for VBE.
    - Set vt.handoff=7 for smooth handoff to kernel graphical mode.
    - Update default/grub.md5sum to include maverick's default md5sum.
    - In recovery mode, add nomodeset to the Linux kernel arguments, and
      remove the 'set gfxpayload=keep' command.
    - Skip Windows os-prober entries on Wubi systems, and suppress the menu
      by default if those are the only other-OS entries.
    - Handle probing striped DM-RAID devices.
    - Replace 'single' by 'recovery' when friendly-recovery is installed.
    - Use qemu -no-kvm in tests for now to work around LP #947597.
    - Disable cursor as early as possible in grub_main.

grub2 (1.99-20) unstable; urgency=low

  * Backport kFreeBSD support from upstream to 4k_sectors.patch.

grub2 (1.99-19) unstable; urgency=low

  [ Colin Watson ]
  * Add grub-probe to grub-mount-udeb (LP: #963471).
  * Backport from upstream:
    - Restore CFLAGS after efiemu check (closes: #665772).
    - Include __ctzdi2 and __ctzsi2 from libgcc if present (closes:
      #665993).
    - Support non-512B sectors and agglomerate reads.

  [ Debconf translations ]
  * Croatian (Tomislav Krznar).
 -- Colin Watson <email address hidden> Mon, 02 Apr 2012 22:42:18 +0100

Changed in grub2 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

@Jane: this should be completely fixed now and is worth testing.

Revision history for this message
Jane Atkinson (irihapeti) wrote :

Thanks, Colin.
I've tested it and it's working as expected i.e. showing all the OS.

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.