Even though grub-install is becoming deprecated, I guess it's the easier way to install.
I wanted to ask about the option '--root-directory' for grub-install. When you run grub-install, it needs to locate the GRUB image files. My understranding is that if that option is not specified, then it'll look for it in the root directory. As far as I can tell, there are two places under the root directory which contains these image files.
Exactly which one of these does grub-install use? I only ask because when this happens:
As where 'grub-install /dev/fd0' works out just fine.
[root@spruce brock]# grub-install --root-directory=/boot /dev/fd0
The file /boot/boot/grub/stage2 not read correctly.
it seems its using $ROOT_DIRECTORY/boot/grub
so if u specify $root_directory as /boot then its looking in /boot/boot/grub .. which doesnt exist.
so change the thing about root directory to / and it should work.
<edited for bad spelling, even by my standards :roll: >
Crap, I can't believe I didn't read that error more thoroughly. So from this mistake, I think that setting that option really pertains to another partition on a disk that's already mounted? Does it always look for /boot/grub?
Yeah, grub-install always looks for /boot/grub. In fact, it's merely a shell script, so you can check and modify precisely what it does.