grub4dos icon indicating copy to clipboard operation
grub4dos copied to clipboard

find --devices doesn't really order the result

Open liloman opened this issue 9 years ago • 4 comments

Hi,

I have found an issue that's causing my troubles:

grub>find --devices=hc /myfile.txt
(cd)
(hd0,1)

It's the same as:

grub>find --devices=ch /myfile.txt
(cd)
(hd0,1)

Cheers and nice piece of software :wave:

liloman avatar Jan 22 '16 22:01 liloman

My bad for not looking first on the source.

Looking on the code is crystal clear that it's searching into the set-root device first.

Shouldn't it respect the order of --devices??

Anyway I reckon I can fix my menus. ;)

liloman avatar Jan 22 '16 23:01 liloman

because find will find current root first so find --devices=ch /myfiles.txt if root is (hd0,0),it find (hd0,0) first.

chenall avatar Mar 11 '16 12:03 chenall

Yeah that is what I figured out so I patched it to not search for the current root first and problem solved.

By the way It will be nice to have this option. :smirk:

liloman avatar Mar 20 '16 22:03 liloman

maybe try

rootnoverify (rd)
find --devices=ch /myfiles.txt

steve6375 avatar Jan 07 '17 09:01 steve6375