Changeset 3330 in MondoRescue for branches/3.2/mindi/mindi


Ignore:
Timestamp:
Dec 23, 2014, 7:49:06 AM (9 years ago)
Author:
Bruno Cornec
Message:
  • mindi now generates UUIDs in mountlist.txt if no LABEL nor UUID exist
  • Fix label-partitions-as-necessary to put back the original UUIDs to the partitions even if no LABEL or UUID line was used in fstab
  • Improve btrfs support
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3326 r3330  
    13661366            label="$uuid"
    13671367        fi
     1368
     1369        # On RHEL 7 they use UUID concretely, even when not mentioned in fstab
     1370        # in order to mount the root part e.g. in grub.
     1371        # One way to solve this is to add the UUID now, if there wasn't one so it's
     1372        # restored correctly
     1373        if [ _"$label" = _"" ]; then
     1374            label=`blkid $current_partition | perl -p -e 's/.* UUID="([A-z0-9-]+)" .*/$1/'`
     1375        fi
     1376
    13681377        partition_format="`echo "$partition_format" | cut -d',' -f1`"; # in case user has ext3,ext2 or something dumb like that
    13691378        [ "$partition_format" = "auto" ] && partition_format="`mount | grep -w $current_partition | $AWK '{print$5;}'`"; # in case user uses 'auto' (dumb!)
Note: See TracChangeset for help on using the changeset viewer.