All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Dubbs <bruce.dubbs@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: grub2 back to lilo ?
Date: Sat, 15 May 2010 00:51:41 -0500	[thread overview]
Message-ID: <4BEE366D.5080400@gmail.com> (raw)
In-Reply-To: <20100514221332.366ff2a8@svelte>

Colin D Bennett wrote:
> Perhaps instead of pre-generating the entire GRUB configuration
> (e.g. from a particular Distro like Ubuntu 9.10) things could be
> inserted into the main grub.cfg at GRUB boot time.
> 
> Here's just a portion of what Ubuntu 10.04 puts in the generated
> grub.cfg (of course with a stern warning not to hand modify the file):

The warning is a bit too strong.  It should be more like "Don't modify 
by hand unless you know what you are doing."

I personally think that grub-mkconfig goes too far.  At least the 
distros go too far in completely overwriting grub.cfg.  They make 
assumptions that the users don't know what they're doing.  That is not 
always true.  If there is an existing grub.cfg, the user should at least 
be given a prompt that grub.cfg is going to be overwritten and given a 
chance to bail out.

> ### BEGIN /etc/grub.d/10_linux ###
> menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class
> gnu-linux --class gnu --class os { recordfail
>         insmod ext2
>         set root='(hd0,3)'
>         search --no-floppy --fs-uuid --set
> 534672c7-9930-407e-a13d-66a8e873a842 linux   /vmlinuz-2.6.32-22-generic
> root=UUID=a5c8657b-e206-47d5-8cc2-30cc6cbfc77e ro   quiet splash
> initrd  /initrd.img-2.6.32-22-generic
> }
> ### etc. etc.
> 
> 
> Now what if specific OS parts could be separated out into another file,
> which could be referred to by GRUB at boot time.  Something like:
> 
> --- grub.cfg
> 
> # General settings
> set timeout=10
> set root='(hd0,3)'
> 
> # OS-specific parts
> include ubuntu-10.04.cfg
> include macos.cfg
> include windows_xp.cfg

This is a reasonable thing to do, but where are the include files found? 
  I would suggest grub/config.d/

Is there anything that goes in these include files other than menuentries?

One problem is that many distros install in one partition, including 
/boot.  You then have the same problem of having to access another 
partition of various types (reiser, ext4, jfs, xfs, etc) on possibly a 
different drive to find the other /boot partitions.  If we can educate 
user and distros to always have a dedicated small /boot partition, then 
there are several good options.

   -- Bruce


  reply	other threads:[~2010-05-15  5:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-15  1:55 grub2 back to lilo ? bc w
2010-05-15  2:32 ` BVK Chaitanya
2010-05-15  7:11   ` Colin Watson
2010-05-15  7:21     ` Marc Haber
2010-05-15  7:41       ` Colin Watson
2010-05-15  8:47         ` Marc Haber
2010-05-15  8:11     ` BVK Chaitanya
2010-05-17 10:40       ` Colin Watson
2010-05-17 11:23         ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-15  5:13 ` Colin D Bennett
2010-05-15  5:51   ` Bruce Dubbs [this message]
2010-05-15 12:07 ` Vladimir 'φ-coder/phcoder' Serbinenko

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=4BEE366D.5080400@gmail.com \
    --to=bruce.dubbs@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.