Changeset 1755 in MondoRescue for branches/2.2.5/mindi
- Timestamp:
- Oct 31, 2007, 1:11:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/mindi
r1737 r1755 961 961 local res currline partition all_partitions ap_orig remaining i j 962 962 963 grep -vx " *#.*" $MY_FSTAB | grep -vx " *none.*" | $AWK '/^\/dev\/[imhs]d||^LABEL \=\/|^UUID=/ && !/fdd|cdr|zip|floppy/ {print $1}'963 grep -vx " *#.*" $MY_FSTAB | grep -vx " *none.*" | $AWK '/^\/dev\/[imhs]d||^LABEL=\/|^UUID=/ && !/fdd|cdr|zip|floppy/ {print $1}' 964 964 [ -e "/etc/raidtab" ] && $AWK '/^ *device/ {print $2}' /etc/raidtab 965 965 return … … 1251 1251 done 1252 1252 [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort -u | tr '\n ' ' '`" 1253 printf " %-15s %-15s %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)" LABELUUID | tee -a $LOGFILE1253 printf " %-15s %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)" LABEL/UUID | tee -a $LOGFILE 1254 1254 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" 1255 1255 for c_p in $all_partitions ; do … … 1503 1503 fi 1504 1504 fi 1505 if [ "$redhat_label" ]; then 1506 label="$redhat_label" 1507 else if [ "$uuid" ]; then 1508 label="$uuid" 1509 fi 1505 1510 partition_format="`echo "$partition_format" | cut -d',' -f1`"; # in case user has ext3,ext2 or something dumb like that 1506 1511 [ "$partition_format" = "auto" ] && partition_format="`mount | grep -w $current_partition | $AWK '{print$5;}'`"; # in case user uses 'auto' (dumb!) 1507 unofficial_outstring=`printf "\t%-15s %-15s %-15s %7s %-15s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$redhat_label" $uuid`1512 unofficial_outstring=`printf "\t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$label"` 1508 1513 if [ "$current_partition" = "" ] ; then 1509 1514 echo "Unknown partition (outstring = $unofficial_outstring)" >> $LOGFILE … … 1512 1517 partition_mountpt=raid 1513 1518 partition_format=raid 1514 printf "\t%-15s %-15s %-15s %7s %-15s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$redhat_label" $uuid| tee -a $LOGFILE1515 printf "%s %s %s %s %s %s\n" $current_partition $partition_mountpt $partition_format $partition_size "$ redhat_label" $uuid>> $mountlist1519 printf "\t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$label" | tee -a $LOGFILE 1520 printf "%s %s %s %s %s %s\n" $current_partition $partition_mountpt $partition_format $partition_size "$label" >> $mountlist 1516 1521 else 1517 1522 echo "Unknown mountpoint (outstring = $unofficial_outstring)" >> $LOGFILE … … 1528 1533 partition_format="vfat" 1529 1534 fi 1530 printf "\t%-15s %-15s %-15s %7s %-15s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$redhat_label" $uuid| tee -a $LOGFILE1531 printf "%s %s %s %s %s %s\n" $current_partition $partition_mountpt $partition_format $partition_size "$redhat_label" $uuid>> $mountlist1535 printf "\t%-15s %-15s %-15s %7s %-15s\n" $current_partition $partition_mountpt $partition_format $psz "$label" | tee -a $LOGFILE 1536 printf "%s %s %s %s %s\n" $current_partition $partition_mountpt $partition_format $partition_size "$label" >> $mountlist 1532 1537 fi 1533 1538 done
Note:
See TracChangeset
for help on using the changeset viewer.