Subversion Repositories livecd

Rev

Rev 226 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 226 Rev 227
Line 824... Line 824...
824
 
824
 
825
    echo "Run grub-install once more ... "
825
    echo "Run grub-install once more ... "
826
 
826
 
827
    [ ! $FLOPPY ] && NO_FLOPPY_OPT="--no-floppy"
827
    [ ! $FLOPPY ] && NO_FLOPPY_OPT="--no-floppy"
828
 
828
 
-
 
829
    cd /
829
    # remount partition
830
    # remount partition
830
    if [ $MOUNTED = "0" ]; then
831
    if [ $MOUNTED = "0" ]; then
831
	umount $NEW
832
	umount $NEW
832
	mount $INSTALL_PART $NEW
833
	mount $INSTALL_PART $NEW
833
    fi
834
    fi
Line 836... Line 837...
836
    # remount partition
837
    # remount partition
837
    if [ $MOUNTED = "0" ]; then
838
    if [ $MOUNTED = "0" ]; then
838
	umount $NEW
839
	umount $NEW
839
	mount $INSTALL_PART $NEW
840
	mount $INSTALL_PART $NEW
840
    fi
841
    fi
841
    grub-install $NO_FLOPPY_OPT --root-directory=$NEW $MBR_DEV >/dev/null 2>&1
842
    grub-install $NO_FLOPPY_OPT --root-directory=$NEW $MBR_DEV
-
 
843
    if [ "$?" =! "0" ]; then
-
 
844
	echo "grub-install failed again."
-
 
845
	echo "You can try to run grub-install manually as root with:"
-
 
846
	echo
-
 
847
	echo " mount $INSTALL_PART $NEW"
-
 
848
	echo " grub-install $NO_FLOPPY_OPT --root-directory=$NEW $MBR_DEV"
-
 
849
	echo
-
 
850
	exit_now 1
-
 
851
    fi
842
 
852
 
843
    echo "done."; echo
853
    echo "done."; echo
844
 
854
 
845
fi
855
fi
846
 
856