From: "Javier Martín" <lordhabbit@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Replacing the legacy "map" command
Date: Tue, 27 May 2008 23:47:02 +0200 [thread overview]
Message-ID: <1211924822.1372.25.camel@localhost> (raw)
In-Reply-To: <483c317b.0c1e640a.2bd9.7c7eSMTPIN_ADDED@mx.google.com>
[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]
> > For grub, i'd suggest
> > map [olddrive newdrive] ...
> > eg. map (hd1) (hd0) (hd0) (hd1)
That was the syntax used in GRUB Legacy, it was successful and could be
reused, but I'd prefer the "drivemap" command I suggested earlier, with
options not just to map drives, but also to show the mappings and to
reset them to the BIOS defaults. I'd still consider a "--automap" flag
in the "chainloader" command quite useful, but I don't know how could
this be set up, since there would be two modules involved: "chain" and
the new "map" module. Chainloader would need to check whether the "map"
module is available and/or loaded ~_~
> > The map command would just store the given parameters (converted to
> > bios hex drive numbers) to a table/array.
> > When the boot command is issued, grub would install an int 0x13
> > handler that uses this data as an lookup table
> > to convert requests and "forward" them to the original int 0x13
> > handler.
Again, that was the method used in GRUB Legacy and my original plan:
contrary to what is suggested in other posts, the mappings would not
apply immediately, but just be stored in an appropriate table. The
required ISRs would be installed only after the boot order is issued,
and the logic in grub_chainloader_real_boot.
> > By the way, I can imagine that some kernels not loaded with
> > "chainloader" may benefit from the remapping as well.
If we want the mappings to be applied to loaders other than chain,
however, we need to make sure the function installing the ISRs is run
before grub_X_real_boot. I'm not sure if installing such a "pre-boot"
handler is possible without significantly modifying the in-place
structure of GRUB.
Cheers!
Habbit
[-- Attachment #2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
next parent reply other threads:[~2008-05-27 21:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <483c317b.0c1e640a.2bd9.7c7eSMTPIN_ADDED@mx.google.com>
2008-05-27 21:47 ` Javier Martín [this message]
2008-05-28 0:19 ` Replacing the legacy 'map' command Tomáš Ebenlendr
2008-05-28 13:17 Javier Martín
2008-05-28 16:23 ` Vesa Jääskeläinen
-- strict thread matches above, loose matches on Subject: below --
2008-05-27 1:36 Replacing the legacy "map" command Javier Martín
2008-05-27 15:59 ` Pavel Roskin
2008-05-27 16:15 ` Urja Rannikko
2008-05-28 14:24 ` Robert Millan
2008-05-30 0:55 ` Pavel Roskin
2008-05-30 2:13 ` Javier Martín
2008-05-30 3:48 ` Pavel Roskin
2008-05-30 7:19 ` Robert Millan
[not found] ` <-5961521231976305315@unknownmsgid>
2008-05-31 23:15 ` Javier Martín
2008-06-01 7:18 ` Vesa Jääskeläinen
2008-05-27 16:04 ` Vesa Jääskeläinen
2008-05-27 16:18 ` Urja Rannikko
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=1211924822.1372.25.camel@localhost \
--to=lordhabbit@gmail.com \
--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.