i386/pc/grub-setup.c question
Quoted 8 lines
main () sets the root device if it's not given.
grub_file_opendoestn'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/sda1is 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