All of lore.kernel.org
 help / color / mirror / Atom feed
* search command doesn't find anything
@ 2015-09-24  9:40 Klemens Nanni
  2015-09-24 11:34 ` Andrei Borzenkov
  0 siblings, 1 reply; 2+ messages in thread
From: Klemens Nanni @ 2015-09-24  9:40 UTC (permalink / raw)
  To: grub-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,

using GRUB as of commit 7a210304 as autoboot payload.

I've got an USB device containing a file in it's root directory (ext4
formatted SD card).

	$ cat (usb0,1)/file_to_find

shows me the file's content as expected. However I wasn't able find
the device using GRUB's search command:

	$ search --file file_to_find
	$ search --file file_to_find --hint=usb0
	$ search --hint=usb0
	$ search --label SD
	$ ...

In fact, not a single variation of the search command worked: I
couldn't find a any device no matter if looking for files, labels or
using hints. According to search's help text, the above mentioned
commands seem to be correct.

To be clear: Every device or file I was searching for was available
all the time and could be accessed using 'ls' and 'cat'.

Am I missing something or is 'search' broken?

Regards,
Klemens Nanni
- -- 
Encrypt your messages using GNUPG if you can - nobody likes snoopers!
For more detailed information, look at the FSF's Email Self-Defense
Guideguide under https://emailselfdefense.fsf.org
Autoboot Key ID: 0xB375A7EE | fingerprint: 6D43 AB28 A92C 9278 E8F8
40A9 0A3A 37D8 B375 A7EE
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJWA8T2AAoJEAo6N9izdafunHIQAKnXXMGPRu10fTQBdzTRqUtG
7lLoVA7RSCegNCk0YYPoorWie5Qn/GTOoyV7DSyBfOYX5Hym+Qnqw9u5+hjCTOTn
EjSuOHTI/2JAJbV170g+2/C2Sw9nic8dGBvzy4VnuORKGHq1uh1rYwlzScdX0ZUK
uGuNlFEtNii+QtdK4KNqKy5zLMrdNHwRgCZJ92iWn6tHSDWJ/JL8UxbbH1BQui+p
ZAKaUPWcRU9P0vcLsr2XmeLU4+ESOMPl3VZ22/5gd1WuL5IBbGYlfkfUeM0BSwi0
co/qz1o7JFCOebVuZqG3Iy4pGLnOzVkreHjUXaFd12AaoJum9nB7670LCCHgV27F
edyJ8/p1aipkxxJ1z0LBjgeYM3nIdwpvsgI3C/u4sQjWrDY9m9XeF5ASFji2lsv1
cZdgMt+2AaQRUNew+xClf3J6XsjWA3EE3ahF8ehcwwDOFOUIW+PCXqidzk//8EGu
KRea/fE7aXtJK+aJGb1ZENVD0Ci9uAuNSlStbQBCpqbEFQqBTArdmDZlfuqot/wn
WyPHVhK0k/2T5v6SRma5EEzLw5Q3fIurX7NdzMzj2pJZVq3rHlTOTRyLOSoLTWJO
fDNS26D7XbmSD2QitVGXoVE3qrm2k8UYx6bWKa9rpIWcRevX22pOVQLsT7t16cqp
+9R2lFkOxlzzHp9nSXz6
=y0ar
-----END PGP SIGNATURE-----


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

* Re: search command doesn't find anything
  2015-09-24  9:40 search command doesn't find anything Klemens Nanni
@ 2015-09-24 11:34 ` Andrei Borzenkov
  0 siblings, 0 replies; 2+ messages in thread
From: Andrei Borzenkov @ 2015-09-24 11:34 UTC (permalink / raw)
  To: The development of GNU GRUB

On Thu, Sep 24, 2015 at 12:40 PM, Klemens Nanni <contact@autoboot.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hello,
>
> using GRUB as of commit 7a210304 as autoboot payload.
>
> I've got an USB device containing a file in it's root directory (ext4
> formatted SD card).
>
>         $ cat (usb0,1)/file_to_find
>
> shows me the file's content as expected. However I wasn't able find
> the device using GRUB's search command:
>
>         $ search --file file_to_find

Do you use full name starting with "/"?

>         $ search --file file_to_find --hint=usb0
>         $ search --hint=usb0
>         $ search --label SD
>         $ ...
>
> In fact, not a single variation of the search command worked: I
> couldn't find a any device no matter if looking for files, labels or
> using hints. According to search's help text, the above mentioned
> commands seem to be correct.
>
> To be clear: Every device or file I was searching for was available
> all the time and could be accessed using 'ls' and 'cat'.
>
> Am I missing something or is 'search' broken?
>
> Regards,
> Klemens Nanni
> - --
> Encrypt your messages using GNUPG if you can - nobody likes snoopers!
> For more detailed information, look at the FSF's Email Self-Defense
> Guideguide under https://emailselfdefense.fsf.org
> Autoboot Key ID: 0xB375A7EE | fingerprint: 6D43 AB28 A92C 9278 E8F8
> 40A9 0A3A 37D8 B375 A7EE
> -----BEGIN PGP SIGNATURE-----
>
> iQIcBAEBCgAGBQJWA8T2AAoJEAo6N9izdafunHIQAKnXXMGPRu10fTQBdzTRqUtG
> 7lLoVA7RSCegNCk0YYPoorWie5Qn/GTOoyV7DSyBfOYX5Hym+Qnqw9u5+hjCTOTn
> EjSuOHTI/2JAJbV170g+2/C2Sw9nic8dGBvzy4VnuORKGHq1uh1rYwlzScdX0ZUK
> uGuNlFEtNii+QtdK4KNqKy5zLMrdNHwRgCZJ92iWn6tHSDWJ/JL8UxbbH1BQui+p
> ZAKaUPWcRU9P0vcLsr2XmeLU4+ESOMPl3VZ22/5gd1WuL5IBbGYlfkfUeM0BSwi0
> co/qz1o7JFCOebVuZqG3Iy4pGLnOzVkreHjUXaFd12AaoJum9nB7670LCCHgV27F
> edyJ8/p1aipkxxJ1z0LBjgeYM3nIdwpvsgI3C/u4sQjWrDY9m9XeF5ASFji2lsv1
> cZdgMt+2AaQRUNew+xClf3J6XsjWA3EE3ahF8ehcwwDOFOUIW+PCXqidzk//8EGu
> KRea/fE7aXtJK+aJGb1ZENVD0Ci9uAuNSlStbQBCpqbEFQqBTArdmDZlfuqot/wn
> WyPHVhK0k/2T5v6SRma5EEzLw5Q3fIurX7NdzMzj2pJZVq3rHlTOTRyLOSoLTWJO
> fDNS26D7XbmSD2QitVGXoVE3qrm2k8UYx6bWKa9rpIWcRevX22pOVQLsT7t16cqp
> +9R2lFkOxlzzHp9nSXz6
> =y0ar
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


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

end of thread, other threads:[~2015-09-24 11:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-24  9:40 search command doesn't find anything Klemens Nanni
2015-09-24 11:34 ` Andrei Borzenkov

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.