From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: retiring device.map
Date: Tue, 06 May 2008 11:43:48 -0400 [thread overview]
Message-ID: <1210088628.2796.14.camel@dv> (raw)
In-Reply-To: <20080506151800.GA25697@thorin>
On Tue, 2008-05-06 at 17:18 +0200, Robert Millan wrote:
> I completely agree. How do we go about this? First of all we need support
> for labels, right?
We have it already in the "search" command. Of course, there is always
room for improvement. GRUB doesn't recognize Linux swap labels. It
cannot set root to, say, partition 3 on a disk where partition 1 has the
given label.
Anyway, the fix belongs to the installer. The first step would be not
to use device.map is it's not needed. In other words, if it's not a
cross-device install, don't read device.map and don't try to create it.
The second step is figuring out what to do with cross-device installs.
device.map serves as a persistent cache that can become out of date.
Perhaps it could be replaced with a table in memory that only contains
entries relevant to the install. device.map was more justified in the
days when floppy drives were common. But if there are still realistic
cases that take a lot of time (say, 10 seconds or more), we need to
address that issue somehow.
device.map is also used in grub-emu, but grub-emu could use a different
names based on the OS device names.
Finally, update-grub should be modified to look for partitions by
labels. That will allow grub-emu use the same menu as the real
bootloader, while using different device labels.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2008-05-06 15:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4807AA02.1020909@mail.berlios.de>
[not found] ` <20080418132858.GH29226@thorin>
2008-04-19 14:34 ` grub-probe fails during grub2 update (Debian) Stefan Weil
2008-04-20 10:07 ` Robert Millan
2008-04-21 10:31 ` Pavel Roskin
2008-05-06 15:18 ` retiring device.map Robert Millan
2008-05-06 15:43 ` Pavel Roskin [this message]
2008-05-07 13:03 ` Robert Millan
2008-05-07 17:22 ` Pavel Roskin
2008-05-07 17:39 ` Bean
2008-05-08 17:08 ` Colin D Bennett
2008-05-09 12:51 ` 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=1210088628.2796.14.camel@dv \
--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.