All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] osdetect.lua improvement
Date: Mon, 13 Jul 2009 19:49:06 -0400	[thread overview]
Message-ID: <1247528946.3865.23.camel@mj> (raw)
In-Reply-To: <ca0f59980907102258p3658bf92wc7bb4959f9f23c50@mail.gmail.com>

On Sat, 2009-07-11 at 13:58 +0800, Bean wrote:
> Hi,
> 
> This patch would check for drive number and use drivemap to map disks,
> this is required to boot DOS/Windows from secondary drive. It also
> change commands like root (hd0,0) to root=hd0,0 (I remember someone
> want to remove the root command ?)

Looks good to me.  Actually, the logic should be changed so that we
don't add "chainloader" and "drivemap" for Linux and FreeBSD, but it
could be a separate patch.

What's really needed in osdetect.lua is elimination of partitions with
invalid bootloader signatures.  If the first sector doesn't end with
0x55 0xaa, the partition should not appear with the "chainloader"
command.

For "Other OS", it would be nice to specify the partition in the menu
title.  Actually, maybe we should provide partitions for all names.
Since osdetect.lua scans all drives, it would be nice to distinguish
Linux 2.6.30 that boots Fedora from Linux 2.6.30 that boots SUSE.

-- 
Regards,
Pavel Roskin



  reply	other threads:[~2009-07-13 23:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-11  5:58 [PATCH] osdetect.lua improvement Bean
2009-07-13 23:49 ` Pavel Roskin [this message]
2009-12-19 18:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-24 21:40   ` Robert Millan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1247528946.3865.23.camel@mj \
    --to=proski@gnu.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.