The rules/img/hdd.sh tries to call grub4dos grub.exe but hangs.
I found that the --config-file= string is fussy. http://reboot.pro/index.php?showtopic=15422
Also the version of grub.exe you are using has a bug when loading from command line
I changed to the latest version of grub.exe and used this code.
source ${prefix}/func.sh;
if [ "$grub_platform" = "efi" ];
then
map "${grubfm_file}";
else
to_g4d_path "${grubfm_file}";
if [ -n "${g4d_path}" ];
then
set opts="set file=${g4d_path} ;; map --heads=0 --sectors-per-track=0 %file% (hd) ;; map --hook ;; rootnoverify (hd-1,0) ;; chainloader (hd-1)+1 ;; boot"
linux (${user})/boot/grubfm/grub.exe --config-file=${opts}
else
set enable_progress_indicator=1;
linux16 ${prefix}/memdisk harddisk raw;
initrd16 "${grubfm_file}";
fi;
boot;
fi;
Now it will boot a 32GB .img of Medicat (two partitions) OK.
Note: I removed --mem. I will test with --mem and add amended code later.