Hi Robert, you wrote: > On Wed, Feb 06, 2008 at 12:02:37AM +0100, Christian Franke wrote: > > Two issues found in current CVS: > > > > 1. Booting a grub2-mkrescue floppy crashes if > > "(memdisk)/boot/grub/grub.cfg" does not exist. This is because > > grub_cpio_open does not set grub_errno if a file does not exist. > > I can't reproduce this with qemu: > > ./grub-mkrescue --pkglibdir=`pwd` --grub-mkimage=`pwd`/grub-mkimage > --image-type=floppy /tmp/grub-rescue-floppy.img qemu -fda > /tmp/grub-rescue-floppy.img -boot a > > is this supposed to be a spurious problem? > >
This depends on the (random?) contents of the "file" variable. If a file does not exist, grub_cpio_open() returns GRUB_ERR_NONE but leaves the file variable as is. Accessing some non existent file ("cat (memdisk)/nosuchfile") should eventually result in a crash. Christian _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel