Skip to contentSkip to conversation

i386/pc/grub-setup.c question

DISCUSSION Seth Goldberg 1 participant 1 message Aug 5, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines

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