[CentOS] /mnt/sysimage/dev folder in rescue mode

Thu Mar 25 13:55:15 UTC 2010
Nicolas Thierry-Mieg <Nicolas.Thierry-Mieg at imag.fr>

Mogens Kjaer wrote:
> If I boot C5 from DVD in rescue mode,
> chroot to /mnt/sysimage, and try to do a
> grub-install /dev/sda it will fail because
> the /dev folder is empty (in the chroot environment).
>
> Until now I've then created the missing nodes manually,
> but is there a smarter way of doing this? Some devfs
> that needs to be mounted on top of /dev?
>

won't this work?
grub-install --root-directory=/mnt/sysimage