3 # Script to run grub to recreate the MBR
5 # Find boot partition if any
6 bootp=`grep "^/dev/.*\ on\ /boot" diskinfo/mount.bsi | cut -d ' ' -f 1`
8 if [ x$bootp != x ] ; then
9 bootdev=`echo $bootp | cut -c1-8`
11 bootdev=`grep "^/dev/.*\ on\ /" diskinfo/mount.bsi | cut -c1-8`
13 chroot /mnt/disk /sbin/grub-install $bootdev