Changeset 572 in MondoRescue for branches/stable/mindi/mindi


Ignore:
Timestamp:
May 24, 2006, 12:20:19 AM (18 years ago)
Author:
bcornec
Message:

gentoo build continued
mindi bug found due to a previous bug corrected (5.6 MB disks generated systematically):

  • when a disk less than 2.8 MB can be built, not enough modules are put on it to support SCSI cds (use of FLOPPY_MODS only). I added most CDROMs modules in order to support them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r543 r572  
    702702    pwd=`pwd`
    703703    if [ "$YOUR_KERNEL_SUCKS" ] ; then
    704     cd $TMP_ROOT
    705     else
    706     cd /
     704        cd $TMP_ROOT
     705    else
     706        cd /
    707707    fi
    708708    if [ ! -e "$1" ] ; then
    709     LogIt "Warning - cannot search specific path '$1'\n"
    710     return 1
     709        LogIt "Warning - cannot search specific path '$1'\n"
     710        return 1
    711711    fi
    712712    modpaths=`find $1 -name $2.*o -type f`
     
    12221222    echo "echo -en \"Loading your modules...\"" >> $outfile
    12231223    if [ "$YOUR_KERNEL_SUCKS" ] ; then
    1224     kver=$FAILSAFE_KVER
    1225     cd $TMP_ROOT
    1226     searchpath=lib/modules/$kver
     1224        kver=$FAILSAFE_KVER
     1225        cd $TMP_ROOT
     1226        searchpath=lib/modules/$kver
    12271227    else
    12281228###
     
    12391239### Sq-Modification end
    12401240###
    1241     searchpath=/lib/modules/$kver
     1241        searchpath=/lib/modules/$kver
    12421242    fi
    12431243   
     
    27802780    old_pwd=`pwd`
    27812781    if [ "$YOUR_KERNEL_SUCKS" ] ; then
    2782     cd $TMP_ROOT
    2783     floppy_modules_path=lib/modules/$FAILSAFE_KVER
    2784     else
    2785     cd /
     2782        cd $TMP_ROOT
     2783        floppy_modules_path=lib/modules/$FAILSAFE_KVER
     2784    else
     2785        cd /
    27862786###
    27872787### Sq-Modification... Use kernel name in module path if specified.
     
    27902790        if [ "${kernelname}" != "" ]
    27912791        then
    2792           floppy_modules_path=lib/modules/${kernelname}
     2792            floppy_modules_path=lib/modules/${kernelname}
    27932793        else
    2794           floppy_modules_path=lib/modules/`uname -r`
     2794            floppy_modules_path=lib/modules/`uname -r`
    27952795        fi
    27962796###
     
    28002800    floppy_modules=""
    28012801    if [ "$disksize" -lt "2880" ] ; then
    2802         list_of_groovy_mods="$FLOPPY_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`"
     2802        list_of_groovy_mods="$FLOPPY_MODS $IDE_MODS ide-scsi sr_mod `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`"
    28032803    else
    28042804        list_of_groovy_mods="$CDROM_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`"
     
    28152815    [ -e "$floppy_modules_path" ] || LogIt "path $floppy_modules_path does not exist.\n If you're not using a modular kernel then you're NUTS.\n"
    28162816    for i in $list_of_groovy_mods ; do
    2817     floppy_modules="$floppy_modules `FindSpecificModuleInPath $floppy_modules_path $i`"
     2817        floppy_modules="$floppy_modules `FindSpecificModuleInPath $floppy_modules_path $i`"
    28182818    done
    28192819    for i in $floppy_modules ; do
    28202820        [ -e "$i" ] && s=`du -sk $i | cut -f1` || s=""
    2821     [ "$YOUR_KERNEL_SUCKS" ] && i=$TMP_ROOT/$i
    2822     echo "Adding $i ($s KB) to the rootfs" >> $LOGFILE
    2823     cp -df $i $mountpoint/ || LogIt "Unable to copy $i to $mountpoint\n"
    2824     [ "`echo "$i" | fgrep ".gz"`" ] && gunzip -f $mountpoint/`basename $i`
     2821        [ "$YOUR_KERNEL_SUCKS" ] && i=$TMP_ROOT/$i
     2822        echo "Adding $i ($s KB) to the rootfs" >> $LOGFILE
     2823        cp -df $i $mountpoint/ || LogIt "Unable to copy $i to $mountpoint\n"
     2824        [ "`echo "$i" | fgrep ".gz"`" ] && gunzip -f $mountpoint/`basename $i`
    28252825    done
    28262826#    if [ -e "/dev/.devfsd" ] ; then
Note: See TracChangeset for help on using the changeset viewer.