All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: grub-install
Date: Sun, 24 Jul 2005 20:44:19 +0200	[thread overview]
Message-ID: <200507242044.19861.okuji@enbug.org> (raw)

I have mostly implemented grub-install as a shell script. I just copied it 
from GRUB Legacy then adapted it to GRUB 2. This script is much simpler in 
GRUB 2, because grub-setup handles most things.

It has one remaining issue, and I'm not sure what is appropriate for this.  
Since the core image in GRUB 2 is generated dynamically, it is necessary to 
specify what modules should be included in it. When the user uses 
grub-install, I believe that they should be automatically determined.

For now, pc.mod and _chain.mod are hardcoded. I think these are good enough 
for PC. It might be better to add _linux.mod on GNU/Linux, though. I'm not 
sure.

The issue is how to determine a filesystem module which is needed to load more 
modules. I think there are three ways:

1. Shell scripting. Probably it is possible to write a shell function which 
detects a filesystem by using df, mount, etc. I do not like this approach 
very much, because the installation environment can be very minimalistic 
(suppose when you install an OS using a floppy), and the behaviors of 
commands are sometimes not clever enough.

2. Adding an option into grub-mkimage to add a filesystem module 
automatically, depending on the filesystem of a grub directory. This is not  
bad, but this makes grub-mkimage a bit complex.

3. Adding a new utility which detects an appropriate filesystem module for a 
given directory. This is not bad, but this sounds a bit overkill.

What do you think?

Okuji



             reply	other threads:[~2005-07-24 19:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-24 18:44 Yoshinori K. Okuji [this message]
2005-07-25  2:04 ` grub-install Hollis Blanchard
2005-07-25  9:11   ` grub-install Yoshinori K. Okuji
2005-07-25 10:26     ` grub-install P
2005-07-25 13:12       ` grub-install P
2005-07-26 13:13         ` grub-install P
2005-07-26 19:28           ` grub-install Yoshinori K. Okuji
2005-07-25 15:15       ` grub-install Hollis Blanchard
2005-07-25 16:35         ` grub-install Marco Gerards
2005-07-25 19:16           ` grub-install Yoshinori K. Okuji
2005-07-26 18:41             ` grub-install Vincent Pelletier
2005-07-26 19:34               ` grub-install Yoshinori K. Okuji
2005-07-26 19:56                 ` grub-install Vincent Pelletier
2005-07-25 12:15 ` grub-install Marco Gerards
2005-07-25 19:25   ` grub-install Yoshinori K. Okuji
2005-07-25 13:06 ` grub-install Vincent Pelletier
2005-07-25 19:04   ` grub-install Yoshinori K. Okuji
  -- strict thread matches above, loose matches on Subject: below --
2008-05-27  5:06 grub-install E.R
2008-05-27 15:40 ` grub-install Pavel Roskin
2008-05-28  0:54 ` grub-install Gregg Levine
2008-05-28  6:00 grub-install E.R

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=200507242044.19861.okuji@enbug.org \
    --to=okuji@enbug.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.