From: Colin D Bennett <colin@gibibit.com>
To: grub-devel@gnu.org
Subject: Re: grub2 back to lilo ?
Date: Fri, 14 May 2010 22:13:32 -0700 [thread overview]
Message-ID: <20100514221332.366ff2a8@svelte> (raw)
In-Reply-To: <AANLkTilXGzpim5IoA4zEsVH9BkTXw9ABllDOARPn5DAh@mail.gmail.com>
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):
### 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
--- ubuntu-10.04.cfg
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
}
And so on.
Regards,
Colin
next prev parent reply other threads:[~2010-05-15 5:13 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 [this message]
2010-05-15 5:51 ` Bruce Dubbs
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=20100514221332.366ff2a8@svelte \
--to=colin@gibibit.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.