chenall / grub4dos

外部命令和工具源码:https://github.com/chenall/grubutils 下载:
http://grub4dos.chenall.net
GNU General Public License v2.0
646 stars 136 forks source link

make grub4dos paths case-sensitive #121

Open A-Shahbazi opened 8 years ago

A-Shahbazi commented 8 years ago

It's useful when one wants to use grub4dos a little bit more interactively e.g. I want to ask user to put the path to the linux iso which later is booted. The current behavior of grub4dos shows the whole characters of the path to iso(which is shown by using the auto completion when pressing TAB key) as lower-case letters. The boot process fails if the path contains upper-case letters as the linux paths are case-sensitive. here's an exampe of the menu.lst part:

title Ubuntu LiveCD
set /p MYISO=Enter iso path (e.g. /OS_ISOs/ubuntu_x64.iso ) :  
map %MYISO% (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz.efi file=/preseed/ubuntu.seed boot=casper iso-scan/filename=%MYISO% quiet splash --
initrd /casper/initrd.lz
boot
steve6375 commented 8 years ago

How is the boot media formatted (NTFS, exFAT, FAT12,FAT16, FAT32, ext2, ext3, ext4???)

steve6375 commented 8 years ago

I tried on NTFS and this appears to be a problem with TAB autocomplete. It always uses lower-case e.g. _ISO\MAINMENU

/_ISO/MA <tab> we get /_ISO/MAinmenu/

A-Shahbazi commented 8 years ago

@steve6375 I was using the grub4dos on an NTFS formatted partition.