detecting other os [hardy]

Bug #214642 reported by Luite van Zelst
4
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: grub-pc

Migrating to grub2 was painless. However, it is not trivial to add a menu entry for other operating systems. Mostly because of the astonishing lack of documentation. How can it be that grub2 has been in development since 2002 and in all that time hardly any documentation was written? The only usable clue to configuring grub2 seems to be the list of installed files of the grub-pc package! In any case...

How about detecting windows from a script in /etc/grub.d/ ? See the attachment, an unpolished example script. It works for me.. the script looks for NTFS partitions marked as bootable, and adds a menu entry for them. I'm sure we could elaborate on the example, for example search for other bootable partition types.

grub-pc:
  Installed: 1.96+20080203-1ubuntu2
  Candidate: 1.96+20080203-1ubuntu2
  Version table:
 *** 1.96+20080203-1ubuntu2 0
        500 http://nl.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

Related branches

Revision history for this message
Luite van Zelst (luitevanzelst) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 1.96+20080512-1ubuntu2

---------------
grub2 (1.96+20080512-1ubuntu2) intrepid; urgency=low

  [ Onkar Shinde ]
  * debian/patches:
    - Add 03_ubuntu_grub_standards to remove GNU/Linux from the
      default string. (LP: #192955) Don't show splash screen or quiet mode
      in single user mode.
    - Add 04_convert_root_uuid.diff to default to using UUIDs
      on new GRUB2 installations. (LP: #192956)
  * debian/control:
    - Move os-prober to 'Depends' since Ubuntu version does not suffer from
      the mount problem in Debian version. 'os-prober' is needed for probing
      other operating systems. (LP: #214642)
  * Other bugs fixed - LP: #219580

  [ Mario Limonciello ]
  * Add items from missed merge bug (LP: #234288)

 -- Onkar Shinde <email address hidden> Fri, 23 May 2008 14:28:36 +0530

Changed in grub2:
status: New → Fix Released
Revision history for this message
plun (plun) wrote :

Fix released....????

http://paste.ubuntu.com/74227/

Revision history for this message
plun (plun) wrote :
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.