From: "Centurion Computer Technology (2005) Ltd" <daniel@centurion.net.nz>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Search command.
Date: Wed, 11 Mar 2009 13:34:46 +1300 [thread overview]
Message-ID: <1236731686.9908.22.camel@localhost.localdomain> (raw)
Hi,
I am playing with the search command in grub2 from debian experimental
and have noticed some oddness
The search command currently returns the device as hdX,X rather than
(hdX,X). This means that the variable created using -s can't be used as
a replacement for the device string. For Example I'd like to be able to
do this:
# Set our root device
search -f /grub/grub.cfg -s root
# Set our prefix
set prefix=${root}/grub/ # I think broken variable handling means this
doesn't work.
menuentry "My Linux OS" {
search -s LINUX_ROOT -u XXXX-YYYY-ZZZZ-AAAA-BBBB
set root=$LINUX_ROOT
linux=/vmlinuz
initrd=/intrd.img
}
Or do I completely misunderstand the search command and usage of
variables?
--
Daniel Reurich
Centurion Computer Technology (2005) Limited.
Ph: 021 797 722
next reply other threads:[~2009-03-11 0:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-11 0:34 Centurion Computer Technology (2005) Ltd [this message]
2009-03-11 4:04 ` Search command Pavel Roskin
2009-03-11 23:52 ` Centurion Computer Technology (2005) Ltd
2009-03-12 0:12 ` Centurion Computer Technology (2005) Ltd
2009-03-12 0:51 ` phcoder
2009-03-12 2:59 ` Centurion Computer Technology (2005) Ltd
2009-03-12 3:16 ` Pavel Roskin
2009-03-12 10:22 ` Centurion Computer Technology (2005) Ltd
-- strict thread matches above, loose matches on Subject: below --
2005-08-20 7:56 search command Yoshinori K. Okuji
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=1236731686.9908.22.camel@localhost.localdomain \
--to=daniel@centurion.net.nz \
--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.