I'm trying to update my grub installation on an embedded system running on compact 
flash.

So, I wget my upgrade tar archive.  It's basically the /boot/grub filesystem, and 
/grubexe (the grub executiable itself, statically linked):

wget http://somewhere/newgrub.tgz

cd /boot
rm -rf *
tar -xvzf newgrub.tgz
cp grubexe ../grub
cd ..
umount boot
sync
./grub --batch --no-floppy >/dev/null 2>/dev/null <<EOF
root (hd0,0)
setup (hd0)
quit
EOF
sync

The problem is, sometimes the above hangs works.  And, sometimes, it causes the box to 
hang at boot (at the MBR . .I get GRUB <hang> on the console.

Any ideas for automating this upgrade?

-Dave




-- 
David Frascone

INTERLACE: To tie two boots together.

Attachment: pgpzkaLL3dHRt.pgp
Description: PGP signature

_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to