From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Does grub2 solve this problem I am having with grub1? RE: usbsticks.
Date: Sun, 03 Feb 2008 00:58:31 -0500 [thread overview]
Message-ID: <1202018311.28138.7.camel@dv> (raw)
In-Reply-To: <20080202143446.GA6583@io.com>
On Sat, 2008-02-02 at 08:34 -0600, Paul Elliott wrote:
> On Sat, Feb 02, 2008 at 01:11:18PM +0100, Yoshinori K. Okuji wrote:
> >
> > It is already there. GRUB 2 already supports setting a root based on a
> > filesystem label or a path.
Indeed! That's much easier that LVM :-)
> What is the syntax? How do I set it up? Are there example grub2 setups?
grub> help search
Usage: search [-f|-l|-s] NAME
Search devices by a file or a filesystem label. If --set is specified,
the first device found is set to a variable. If no variable name is
specified, "root" is used.
-f, --file search devices by a file (default)
-l, --label search devices by a filesystem label
-s, --set=VAR set a variable to the first device found
-h, --help display this help and exit
-u, --usage display the usage of this command and exit
grub>
That means, you can use unique labels like "usbstick-fedora8" and then
use:
search -f usbstick-fedora8
linux /boot/vmlinuz-2.6.24-f8
initrd /boot/initrd-2.6.24-f8.img
or something like that.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2008-02-03 5:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-31 16:08 Does grub2 solve this problem I am having with grub1? RE: usbsticks Paul Elliott
2008-01-31 16:58 ` Pavel Roskin
2008-02-01 4:34 ` Paul Elliott
2008-02-01 4:50 ` Pavel Roskin
2008-02-01 12:59 ` Paul Elliott
2008-02-01 17:25 ` Pavel Roskin
2008-02-01 18:44 ` Paul Elliott
2008-02-01 20:14 ` Pavel Roskin
2008-02-01 21:45 ` Paul Elliott
2008-02-01 21:50 ` Robert Millan
2008-02-02 12:11 ` Yoshinori K. Okuji
2008-02-02 14:34 ` Paul Elliott
2008-02-03 5:58 ` Pavel Roskin [this message]
2008-02-04 3:46 ` Pavel Roskin
2008-02-04 13:24 ` Paul Elliott
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=1202018311.28138.7.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.