All of lore.kernel.org
 help / color / mirror / Atom feed
* Search command.
@ 2009-03-11  0:34 Centurion Computer Technology (2005) Ltd
  2009-03-11  4:04 ` Pavel Roskin
  0 siblings, 1 reply; 9+ messages in thread
From: Centurion Computer Technology (2005) Ltd @ 2009-03-11  0:34 UTC (permalink / raw)
  To: The development of GRUB 2

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




^ permalink raw reply	[flat|nested] 9+ messages in thread
* search command
@ 2005-08-20  7:56 Yoshinori K. Okuji
  0 siblings, 0 replies; 9+ messages in thread
From: Yoshinori K. Okuji @ 2005-08-20  7:56 UTC (permalink / raw)
  To: The development of GRUB 2

I've implement a new command "search" right now. This is similar to "find" in 
GRUB Legacy, but has more features. I renamed it to "search", because it is 
significantly different from "find" in GNU.

Some supposed usage:

# Find a partition whose label is "Boot Partition" and set the result in root.
search --label "Boot Partition" --set
linux /vmlinuz

# Find a partition which has a file "grub2.cfg" and store it in a variable.
search --file /boot/grub/grub2.cfg --set=VAR
configfile ($VAR)/boot/grub/grub2.cfg

Okuji



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-12 10:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11  0:34 Search command Centurion Computer Technology (2005) Ltd
2009-03-11  4:04 ` 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

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.