Changeset 2432 in MondoRescue
- Timestamp:
- Sep 28, 2009, 2:16:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/mindi
r2431 r2432 1294 1294 else 1295 1295 if [ "$partition_format" = "dos" ] || [ "$partition_format" = "msdos" ] ; then 1296 echo "Stupid bastard..." >> $LOGFILE1296 echo "vfat should be used instead of dos/msdos as a partition format" >> $LOGFILE 1297 1297 partition_format="vfat" 1298 1298 fi … … 1303 1303 } 1304 1304 1305 CheckMountlist() { 1306 local file=$1 1307 # Coherency verification 1308 ML0=`cat $file | wc -l` 1309 ML1=`$AWK '{print $1}' $file | sort -u | wc -l` 1310 ML2=`$AWK '{print $2}' $file | sort -u | wc -l` 1311 if [ "$ML0" -ne "$ML1" ]; then 1312 echo "--------------------------------------------" >> $LOGFILE 1313 echo "WARNING: Duplicate device entry in mountlist" | tee -a $LOGFILE 1314 echo "--------------------------------------------" >> $LOGFILE 1315 fi 1316 if [ "$ML0" -ne "$ML2" ]; then 1317 echo "--------------------------------------------" >> $LOGFILE 1318 echo "WARNING: Duplicate mountpoint entry in mountlist" | tee -a $LOGFILE 1319 echo "------------------------------------------------" >> $LOGFILE 1320 fi 1321 } 1305 1322 1306 1323 MakeSureNumberIsInteger() { … … 1927 1944 TOTAL_BIGDIR_SIZE=`du -sk $bigdir | cut -f1` 1928 1945 MakeMountlist $MINDI_TMP/mountlist.txt 1946 CheckMountlist $MINDI_TMP/mountlist.txt 1929 1947 mkdir -p $bigdir/tmp 1930 1948 cp -f $MINDI_TMP/mountlist.txt $bigdir/tmp/mountlist.txt 2>> $LOGFILE || Die "Cannot copy mountlist.txt from $MINDI_TMP to data disk" … … 1943 1961 cat $bigdir/tmp/mountlist.txt >> $LOGFILE 1944 1962 echo "-----------------------------------" >> $LOGFILE 1963 1945 1964 echo -en "$FILES_IN_FILELIST" > $bigdir/FILES-IN-FILELIST 2>> $LOGFILE 1946 1965 echo -en "$LAST_FILELIST_NUMBER" > $bigdir/LAST-FILELIST-NUMBER 2>> $LOGFILE … … 2680 2699 [ ! "$2" ] && Die "Please specify the output file" 2681 2700 MakeMountlist $2 2701 CheckMountlist $2 2682 2702 # Avoids logfile content for mondo 2683 2703 export MONDO_SHARE="" … … 2814 2834 MakeMondoConfigFile $MINDI_TMP/mondo-restore.cfg 2815 2835 MakeMountlist $MINDI_TMP/mountlist.txt 2836 CheckMountlist $MINDI_TMP/mountlist.txt 2816 2837 mkdir -p $MINDI_TMP/small-all/tmp 2817 2838 cd $MINDI_TMP/small-all
Note:
See TracChangeset
for help on using the changeset viewer.