When grub4dos is guided from grub2, the parameter "-- config-file" is ineffective and directly enters the command line. The cause may be a bug. Grub encountered a problem in parameter processing. My version is GNU grub 2.00 ~ Beta2, but reading the post, grub may have this problem from 1.99.
Here: http://reboot.pro/15422/page__view__findpost__p__143239
Q:
When boot grub4dos from grub2, the parameter "-- config-file" no effect.
Menuentry "WinPE-2009.iso"{Set g4d_dir= "/Boot/grub4dos"Linux $ g4d_dir/grub.exe -- config-File= "Find -- Set-root/boot/ISO/winpe-2009.iso; map -- MEM/boot/ISO/winpe-2009.iso (0xff); map -- hook; chainloader (0xff); Boot"}
A:
The solution is to take out the parameter list and then click OK.
menuentry "WinPE-2009.iso" {set g4d_dir = "/boot/grub4dos" set writable file =" find -- Set-root/boot/ISO/winpe-2009.iso; map -- MEM/boot/ISO/winpe-2009.iso (0xff ); map -- hook; chainloader (0xff); Boot " Linux $ g4d_dir/grub.exe -- config-file = $ cfgfile }