- Timestamp:
- Nov 23, 2006, 5:22:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r964 r965 1049 1049 /usr/bin/logger -s $1 1050 1050 fi 1051 echo -e n"$1" >> $LOGFILE1051 echo -e "$1" >> $LOGFILE 1052 1052 } 1053 1053 … … 1165 1165 echo "Your raw fstab file looks like this:-" >> $LOGFILE 1166 1166 cat $MY_FSTAB >> $LOGFILE 1167 echo "Your mountlist will look like this:-" 1167 echo "Your mountlist will look like this:-" | tee -a $LOGFILE 1168 1168 1169 1169 # scratchdir, mountlist(OUT) … … 1196 1196 done 1197 1197 [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort -u | tr '\n ' ' '`" 1198 printf " %-15s %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)" LABEL 1198 printf " %-15s %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)" LABEL | tee -a $LOGFILE 1199 1199 useless_dev="/dev/floppy /dev/fd0h1440 /dev/fd0H1440 /dev/cdrom /dev/cdrom/cdrom /dev/cdrom/cdrom1 /dev/cdrom/cdrom2 /dev/cdrom0 /dev/cdrom1 /dev/cdrom2 /dev/cdrom3 /dev/cdrw /dev/scd /dev/ram :/ /dev/sr0 /dev/sr1 /dev/cdrom1" 1200 1200 for c_p in $all_partitions ; do … … 1405 1405 partition_mountpt="image" 1406 1406 old_partition_fmt=$partition_format 1407 echo "------- $FDISK -l log ------------" >> $LOGFILE1408 1407 partition_format="`$FDISK -l 2>> $LOGFILE | tr '*' ' ' | tr '+' ' ' | tr -s ' ' '\t' | grep -w "$absolute_partition" | cut -f5`" 1409 echo "------- $FDISK log end ------------" >> $LOGFILE1410 1408 partition_size=$(($partition_size+1)); # just in case 1411 1409 if [ "$partition_format" = "Linux" ] ; then … … 1420 1418 fi 1421 1419 if [ ! "$partition_mountpt" ] ; then 1420 echo "------- $FDISK -l $qq log ------------" >> $LOGFILE 1422 1421 for qq in "" `find /dev/ida/c*d* ! -name '*p*'` ; do 1423 echo "------- $FDISK -l $qq log ------------" >> $LOGFILE1424 1422 partition_format=`$FDISK -l $qq 2>> $LOGFILE | grep -w "$c_p" | sed 's/12/|/' | tr -s '\t' ' ' | cut -d'|' -f2 | cut -d' ' -f2-9` 1425 echo "------- $FDISK log end ------------" >> $LOGFILE1426 1423 [ "$partition_format" ] && break 1427 1424 done 1425 echo "------- $FDISK log end ------------" >> $LOGFILE 1428 1426 if [ "$partition_format" = "Compaq diagnostics" ] ; then 1429 1427 partition_format="compaq" … … 1442 1440 partition_mountpt=raid 1443 1441 partition_format=raid 1444 printf "\t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$redhat_label" 1442 printf "\t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$redhat_label" | tee -a $LOGFILE 1445 1443 printf "%s %s %s %s %s\n" $current_partition $partition_mountpt $partition_format $partition_size "$redhat_label" >> $mountlist 1446 1444 else … … 1458 1456 partition_format="vfat" 1459 1457 fi 1460 printf "\t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$redhat_label" 1458 printf "\t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$redhat_label" | tee -a $LOGFILE 1461 1459 printf "%s %s %s %s %s\n" $current_partition $partition_mountpt $partition_format $partition_size "$redhat_label" >> $mountlist 1462 1460 fi … … 2968 2966 [ "$(($RANDOM%64))" -eq "0" ] && LogIt "Dude, I've looked inside your computer and it's really dusty..." 2969 2967 2970 [ "$YOUR_KERNEL_SUCKS" ] && [ ! "$FAILSAFE_KVER" ] && Die "Please install mindi-kernel package. You need it. 2968 [ "$YOUR_KERNEL_SUCKS" ] && [ ! "$FAILSAFE_KVER" ] && Die "Please install mindi-kernel package. You need it.\nGo to http://www.mondorescue.org and download it, then install it." 2971 2969 2972 2970 rm -f /root/images/mindi/{*img,*gz,*iso}
Note:
See TracChangeset
for help on using the changeset viewer.