main () sets the root device if it's not given. grub_file_open doestn't need a device if a root device is set. Else things like `set root=(hd0,1);linux /vmlnuz' wouldn't work either in real grub. It works as long as the path is relative to the root. I.e. grub-install --root-directory=/mnt /dev/sda1 is currenctly broken but without --root-directory= it works.
Thanks -- I neglected to look at the implementation of grub_device_open, which uses the root if the argument passed in is NULL.
--S _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel