Changeset 291


Ignore:
Timestamp:
Jan 10, 2006, 9:48:35 AM (14 years ago)
Author:
bcornec
Message:

avoids to copy 5670 KB disks to floppy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mindi/mindi

    r290 r291  
    15411541    [ ! -e "$data_dev" ] && Die "Cannot find $data_dev - is your Linux distro broken?"
    15421542    i=`find $imagesdir -type f | fgrep "/mindi-root.1" 2> /dev/null`
    1543     j=`find $imagesdir -type f | fgrep "/mindi-boot" | fgrep -v 2880`
     1543    j=`find $imagesdir -type f | fgrep "/mindi-boot" | egrep -v '2880|5760'`
    15441544#    echo "i=$i"
    15451545#    echo "j=$j"
     
    17551755    options=""
    17561756        if [ "$ARCH" != "ia64" ] ; then
    1757         echo -en "boot=/dev/loop0\ndisk=/dev/loop0\n"
     1757            echo -en "boot=/dev/loop0\ndisk=/dev/loop0\n"
    17581758        fi
    17591759        if [ "$disksize" -eq "2880" ] ; then
    1760         echo -en "bios=0x00\nsectors=36\nheads=2\ncylinders=80\n"
     1760            echo -en "bios=0x00\nsectors=36\nheads=2\ncylinders=80\n"
    17611761        elif [ "$disksize" -eq "1722" ] ; then
    1762         echo -en "bios=0x00\nsectors=21\nheads=2\ncylinders=82\n"
     1762            echo -en "bios=0x00\nsectors=21\nheads=2\ncylinders=82\n"
    17631763        elif [ "$disksize" -gt "2880" ] ; then
    17641764            /bin/true
    17651765        else
    1766         echo -en "bios=0x00\nsectors=18\nheads=2\ncylinders=80\n"
     1766            echo -en "bios=0x00\nsectors=18\nheads=2\ncylinders=80\n"
    17671767        fi
    17681768        if [ "$ARCH" != "ia64" ] ; then
     
    17721772        echo -en "default=RESTORE\n"
    17731773    elif [ "$disksize" -gt "2880" ] && [ "`DidMondoCallMe`" ] ; then
    1774     if [ -e "$MONDO_TMP/start-nfs" ] ; then
    1775         echo -en "default=iso\n"
    1776     else
    1777         echo -en "default=interactive\n"
    1778     fi
    1779     else
    1780     echo -en "default=expert\n"
    1781     fi
    1782         echo -en "prompt\n"
     1774        if [ -e "$MONDO_TMP/start-nfs" ] ; then
     1775            echo -en "default=iso\n"
     1776        else
     1777            echo -en "default=interactive\n"
     1778        fi
     1779    else
     1780        echo -en "default=expert\n"
     1781    fi
     1782
     1783    echo -en "prompt\n"
    17831784    if [ "$ARCH" != "ia64" ] ; then
    17841785        echo -en "vga=normal\nbackup=/dev/null\nmessage=/message\n"
     
    18021803    fi
    18031804    else
    1804     options="expert"
     1805        options="expert"
    18051806    fi
    18061807    for i in $options ; do
    18071808    ooo=$i
    18081809    [ "$ooo" = "RESTORE" ] && ooo="nuke"
    1809         if [ "$ARCH" = "ia64" ] ; then
     1810    if [ "$ARCH" = "ia64" ] ; then
    18101811        rootpart="root=/dev/ram0\n\t"
    18111812    else
     
    27482749    floppy_modules=""
    27492750    if [ "$disksize" -lt "2880" ] ; then
    2750     list_of_groovy_mods="$FLOPPY_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`"
    2751     else
    2752     list_of_groovy_mods="$CDROM_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`"
     2751        list_of_groovy_mods="$FLOPPY_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`"
     2752    else
     2753        list_of_groovy_mods="$CDROM_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`"
    27532754    fi
    27542755    if [ -e "$MONDO_TMP/start-nfs" ] ; then
Note: See TracChangeset for help on using the changeset viewer.