Changeset 3028 in MondoRescue


Ignore:
Timestamp:
Jul 25, 2012, 9:37:23 PM (12 years ago)
Author:
Bruno Cornec
Message:

This revision fixes now really the usage of iso9660 FS type mounted in fstab.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r3027 r3028  
    10701070    [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort -u | tr '\n ' ' '`"
    10711071    printf "        %-15s %-15s %-15s %-13s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)" LABEL/UUID | tee -a $LOGFILE
    1072     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 tmpfs devpts sysfs proc debugfs iso9660"
     1072    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 tmpfs devpts sysfs proc debugfs"
    10731073    for c_p in $all_partitions ; do
    10741074        # Skip fd/cd devices, network FS, cifs
     
    12871287
    12881288        partition_format=`$AWK '$1 == "'"$str_to_find_fmt_with"'" {print $3}' $MY_FSTAB`
     1289        # Detects iso9660 ISO images and exclude them
     1290        if [ "`echo "$partition_format" | grep -iw iso9660`" != "" ]; then
     1291                LogFile "INFO: Excluding $current_partition from mountlist (due to iso8660 format in fstab)"
     1292            continue
     1293        fi
    12891294        # Some distributions such as Debian do not put /dev/<VG>/<LV> in fstab
    12901295        # for LVM partitions but use /dev/mapper/<VG>-<LV> instead. Fortunately,
Note: See TracChangeset for help on using the changeset viewer.