jack23912 / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

From Grub2 the --config-file argument failed when there is a space (or another special character) #191

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce:
1. Write this into Grub2 command line: linux (hdX,Y)/grub.exe 
--config-file="color 2;command;pause"

Expected the following output in green color: (bd)/boot/grub
Instead of that, I see the default config, and I get a command line, because 
there is no menu.lst file.

Versions:
Grub4DOS v0.4.6a
Grub2 v2.00

Remarks:
Using commands without space, it works (e.g. linux (hdX,Y)/grub.exe 
--config-file="command;ls;pause").
The place of the space isn't matter, we get the default menu (e.g. this don't 
work: linux (hdX,Y)/grub.exe --config-file="command;pause;color 2;pause").
Cannot using a menu file - maybe another special character prohibit it (e.g. 
linux (hdX,Y)/grub.exe --config-file="(hdA,B)/menu.lst")
Using these from Grub4DOS (not from Grub2) works every time.

Original issue reported on code.google.com by peter.du...@gmail.com on 5 Aug 2014 at 10:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Please try to Use '=' instead.

eg.

linux (hdX,Y)/grub.exe --config-file="command;pause;color=2;pause"

Original comment by chenall.cn on 20 Aug 2014 at 8:02

GoogleCodeExporter commented 8 years ago
Please try to Use '=' instead.

eg.

linux (hdX,Y)/grub.exe --config-file="command;pause;color=2;pause"

Original comment by chenall.cn on 20 Aug 2014 at 8:02

GoogleCodeExporter commented 8 years ago
Of course, this was just an example (it would not make much sense in such a 
config :) ). In such cases like "map (hd0) (hd3);map (hd0,4)/Win8.vhd (hd0)" we 
cannot use the '='.

Original comment by peter.du...@gmail.com on 20 Aug 2014 at 8:12

GoogleCodeExporter commented 8 years ago
 linux (hdX,Y)/grub.exe --config-file="configfile=(hdA,B)/menu.lst"

Original comment by chenall.cn on 25 Aug 2014 at 10:32

GoogleCodeExporter commented 8 years ago
Thank you, it works! :) (Sorry for the late answer, but I was too busy.)

Remark for the other users: Grub4DOS is case insensitive, so filename between 
the quotes will be the first occurrence if there is more form.

Original comment by peter.du...@gmail.com on 13 Sep 2014 at 10:33

GoogleCodeExporter commented 8 years ago

Original comment by chenall.cn on 22 Dec 2014 at 5:03