Namasthe Team,
I drop into a grub command shell after booting from a live image written to a USB drive. I try the following and I am presented with an error stating -l file not found
.
grub> ls -l -h -a (hd7,gpt6)/dev/
Namasthe Team,
I drop into a grub command shell after booting from a live image written to a USB drive. I try the following and I am presented with an error stating -l file not found
.
grub> ls -l -h -a (hd7,gpt6)/dev/
The grub2 command ls
only take file or device names as arguments. Ther are no flags lake the ones you would use from the shell.
Following is from the official documentation. You can access with either info grub2
or pinfo grub2
.
16.3.47 ls
----------
-- Command: ls [arg ...]
List devices or files.
With no arguments, print all devices known to GRUB.
If the argument is a device name enclosed in parentheses (*note
Device syntax::), then print the name of the filesystem of that
device.
If the argument is a directory given as an absolute file name
(*note File name syntax::), then list the contents of that
directory.
Thanks a lot for your help and assistance @vekruse
Can I request you to review the source code at ls.c\commands\grub-core - grub.git - GNU GRUB ?
Lines 294 through 296 indicate presence of arguments for built-in command ls . Please review and assist
I decline reviewing. If you suspect a bug, then the bugzilla page is the right place.