Subversion Repositories livecd

Rev

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

Rev 228 Rev 229
Line 831... Line 831...
831
 
831
 
832
    echo "Run grub-install once more ... "
832
    echo "Run grub-install once more ... "
833
 
833
 
834
    [ ! $FLOPPY ] && NO_FLOPPY_OPT="--no-floppy"
834
    [ ! $FLOPPY ] && NO_FLOPPY_OPT="--no-floppy"
835
 
835
 
836
    # remount partition
836
    # 1. run grub-install, before re-mount partition (quite)
837
    if [ $MOUNTED = "0" ]; then
837
    [ $MOUNTED = "0" ] && umount $NEW && mount $INSTALL_PART $NEW
838
	umount $NEW
-
 
839
	mount $INSTALL_PART $NEW
-
 
840
    fi
-
 
841
    grub-install $NO_FLOPPY_OPT --root-directory=$NEW $MBR_DEV >/dev/null 2>&1
838
    grub-install $NO_FLOPPY_OPT --root-directory=$NEW $MBR_DEV >/dev/null 2>&1
842
 
839
 
843
    # remount partition
840
    # 2. run grub-install, before re-mount partition (verbose)
844
    if [ $MOUNTED = "0" ]; then
841
    [ $MOUNTED = "0" ] && umount $NEW && mount $INSTALL_PART $NEW
845
	umount $NEW
-
 
846
	mount $INSTALL_PART $NEW
-
 
847
    fi
-
 
848
    grub-install $NO_FLOPPY_OPT --root-directory=$NEW $MBR_DEV
842
    grub-install $NO_FLOPPY_OPT --root-directory=$NEW $MBR_DEV
-
 
843
 
849
    if [ "$?" != "0" ]; then
844
    if [ "$?" != "0" ]; then
850
	echo "grub-install failed again."
845
	echo "grub-install failed again."
851
	echo "You can try to run grub-install manually as root with:"
846
	echo "You can try to run grub-install manually as root with:"
852
	echo
847
	echo
853
	echo " mount $INSTALL_PART $NEW"
848
	echo " mount $INSTALL_PART $NEW"