Changeset 3407 in MondoRescue


Ignore:
Timestamp:
Aug 6, 2015, 8:10:27 AM (9 years ago)
Author:
Bruno Cornec
Message:

Use directly MINDI_CACHE instead of imagesdir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3406 r3407  
    18511851PrepareBootDiskImage() {
    18521852    # LILO originally
    1853     local imagesdir dev imagefile fname i kernelpath cfg_file testpath options retval outstr old_pwd ooo max_kernel_size liloconf bootimage
    1854     imagesdir=$MINDI_CACHE
     1853    local dev imagefile fname i kernelpath cfg_file testpath options retval outstr old_pwd ooo max_kernel_size liloconf bootimage
    18551854    kernelpath=$1
    18561855    retval=0
     
    20102009
    20112010PrepareDataDiskImages() {
    2012     local needlist bigdir diskdir imagesdir res i j k old_pwd lines lfiles includefile
    2013 
    2014     imagesdir=$MINDI_CACHE
    2015     rm -f $imagesdir/mindi.iso
     2011    local needlist bigdir diskdir res i j k old_pwd lines lfiles includefile
     2012
     2013    rm -f $MINDI_CACHE/mindi.iso
    20162014    needlist=$MINDI_TMP/what-we-need.txt
    20172015    bigdir=$MINDI_TMP/bigdir
     
    21252123    echo -en "Tarring and zipping the data content..."
    21262124    size_of_all_tools=`du -sk $bigdir | cut -f1`
    2127     (cd "$bigdir" ; tar -b 4096 -cf - . 2>> $MINDI_TMP/$$.log | gzip -9 > $imagesdir/all.tar.gz || LogAll "ERROR: Problem creating all.tar.gz" $MINDI_TMP/$$.log)
     2125    (cd "$bigdir" ; tar -b 4096 -cf - . 2>> $MINDI_TMP/$$.log | gzip -9 > $MINDI_CACHE/all.tar.gz || LogAll "ERROR: Problem creating all.tar.gz" $MINDI_TMP/$$.log)
    21282126    LogFile "Size of the data content"
    21292127    LogFile "------------------------"
    2130     du -sk $imagesdir/*gz >> $LOGFILE
     2128    du -sk $MINDI_CACHE/*gz >> $LOGFILE
    21312129    LogFile "------------------------"
    21322130    echo -e "$DONE"
Note: See TracChangeset for help on using the changeset viewer.