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


Ignore:
Timestamp:
Mar 24, 2006, 7:09:44 PM (15 years ago)
Author:
bcornec
Message:

deplist.d introduced
deplist.txt split in multiple config files under it
delivery process adapted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r449 r454  
    6464
    6565if [ "$mindi_deplist_dir" == "" ]; then
    66     DEPLIST_DIR="/etc/mindi/deplist.d"
     66    DEPLIST_DIR="$MINDI_CONF/deplist.d"
    6767else
    6868    DEPLIST_DIR="$mindi_deplist_dir"
     
    328328    biggienumber=$4
    329329
    330     [ -d "$filename" ] && Die "Cannot chop up $filename: it's a directory. Please amend deplist.txt accordingly."
     330    [ -d "$filename" ] && Die "Cannot chop up $filename: it's a directory. Please amend deplist file accordingly."
    331331    mkdir -p $outdir
    332332
     
    875875    echo "$fname" >> $outfile.pre
    876876        cat $tempdepfile >> $outfile.pre
    877 #        echo "$fname ----> dependencies:-" >> $LOGFILE
    878 #        cat $tempdepfile | tr -s '/' '/' | sort -u >> $LOGFILE
    879 #        echo -en "(end of deplist of $fname)\n\n" >> $LOGFILE
    880877        rm -f $tempdepfile
    881878    progress=$(($progress+1))
     
    13641361    if [ -d "/proc/lvm" ] || [ -d "/dev/mapper" ]; then
    13651362    echo -en "\rAnalyzing LVM...\r"
    1366     all_partitions=`$MINDI_LIB/analyze-my-lvm | fgrep ">>>" | cut -d' ' -f2-32`
     1363    all_partitions=`$MINDI_SBIN/analyze-my-lvm | fgrep ">>>" | cut -d' ' -f2-32`
    13671364    fi
    13681365    all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`"
     
    21692166    tardir=$TMP_ROOT/tardir
    21702167
    2171     lines=`grep -vx " *#.*" $MINDI_CONF/deplist.txt | grep -vx "" | wc -l`
    2172     cat $MINDI_CONF/deplist.txt | GenerateGiantDependencyList $needlist $lines
     2168    lines=`grep -vx " *#.*" $MINDI_CONF/deplist.txt $DEPLIST_DIR/* | grep -vx "" | wc -l`
     2169    cat $MINDI_CONF/deplist.txt $DEPLIST_DIR/* | GenerateGiantDependencyList $needlist $lines
    21732170    res=$?
    21742171    if [ "$YOUR_KERNEL_SUCKS" ]; then
     
    22702267    cp -f $TMP_ROOT/mountlist.txt $CACHE_LOC
    22712268    [ "`DidMondoCallMe`" ] && cp -f $minidir_root/$noof_disks/tmp/mountlist.txt $MONDO_TMP/.
    2272     [ -d "/proc/lvm" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
    2273     [ -d "/dev/mapper" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
     2269    [ -d "/proc/lvm" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
     2270    [ -d "/dev/mapper" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
    22742271    cat $minidir_root/$noof_disks/tmp/mountlist.txt >> $LOGFILE
    22752272    ZipMinidirsIntoTarballs $minidir_root $tardir $noof_disks
     
    29542951#----------------------------------- main -----------------------------------#
    29552952##############################################################################
    2956 
    2957 
    2958 #AWK=`which gawk`
    2959 #LocateDeps $1
    2960 #MakeModuleLoadingScript /tmp/load-modules.sh
    2961 #exit 0
    2962 
    2963 
    2964 #cat /etc/mindi/deplist.txt | GenerateGiantDependencyList /tmp/deplist.old 200
    2965 #exit 0
    2966 
    29672953
    29682954
Note: See TracChangeset for help on using the changeset viewer.