As there doesn't seem to be a system tool which can install a boot
loader on red Hat (which sucks), it was a question of getting the grub
command right. I don't think the grub docs are entirely correct, or if
so, they're inadequate from my point of view, but this did the trick:

grub --device-map /boot/grub/device.map --batch <<EOF
root (hd0,1)
setup --stage2=/boot/grub/stage2 (hd0)
quit
EOF

/boot = /dev/hda2
/dev/hda = hd0

It also needs correct lines (and a kernel root= ) in
/boot/grub/grub.conf, but they're easy to work out.

Volker

-- 
Volker Kuhlmann                 is list0570 with the domain in header
http://volker.dnsalias.net/     Please do not CC list postings to me.

Reply via email to