http://www.mirrorser...e-dvd-32bit.iso
Initrd image is in /casper/initrd.lz in this case. The menu is auto generated without checking contents of the ISO, hence the check which initrd image to use.
title Start linuxmint-12-kde-dvd-32bit set ISO=/ubuntu/linuxmint-12-kde-dvd-32bit_buntu.iso ls %ISO% > nul || find --set-root --devices=hf %ISO% map %ISO% (0xff) || map --mem %ISO% (0xff) || map --mem --heads=0 --sectors-per-track=0 %ISO% (0xff) map --hook root (0xff)kernel /casper/vmlinuz file=/cdrom/preseed/mint.seed boot=casper iso-scan/filename=%ISO% splash -- ls /casper/initrd.lz > nul && initrd /casper/initrd.lz ls /casper/initrd.gz > nul && initrd /casper/initrd.gzThis leads to reset on real machine and hang in QEMU right after grub4dos counter for loading initrd image [0/18]...[18/18] finishes.
Removing NUL redirects in last two lines fixes the issue:
ls /casper/initrd.lz && initrd /casper/initrd.lz ls /casper/initrd.gz && initrd /casper/initrd.gz
I am curious why is this happening?
Playing with another way to boot it:
title Start linuxmint-12-kde-dvd-32bit set ISO=/ubuntu/linuxmint-12-kde-dvd-32bit_buntu.iso ls %ISO% > nul || find --set-root --devices=hf %ISO% map %ISO% (0xff) || map --mem %ISO% (0xff) || map --mem --heads=0 --sectors-per-track=0 %ISO% (0xff) map --hook root (0xff) ls /casper/initrd.lz > nul && set init=/casper/initrd.lz ls /casper/initrd.gz > nul && set init=/casper/initrd.gz kernel /casper/vmlinuz file=/cdrom/preseed/mint.seed boot=casper iso-scan/filename=%ISO% splash -- initrd %init%
This works as expected. However, adding
echo TEST > nulat the bottom of the menu breaks boot again.
Another test:
title Start linuxmint-12-kde-dvd-32bit set ISO=/ubuntu/linuxmint-12-kde-dvd-32bit_buntu.iso ls %ISO% > nul || find --set-root --devices=hf %ISO% map %ISO% (0xff) || map --mem %ISO% (0xff) || map --mem --heads=0 --sectors-per-track=0 %ISO% (0xff) map --hook root (0xff)ls /casper/initrd.lz > nul && set init=/casper/initrd.lz ls /casper/initrd.gz > nul && set init=/casper/initrd.gz kernel /casper/vmlinuz file=/cdrom/preseed/mint.seed boot=casper iso-scan/filename=%ISO% splash -- initrd %init% echo test- works fine.
Is this expected behavior or a bug?
If it's expected, are there any guidelines what not to use after kernel, or is it after the initrd commands?
Checked grub4dos 0.4.5c 2012-05-16- it behaves the same way.