Changeset 3488 in MondoRescue for branches/3.2/mondo/src/restore-scripts/mondo


Ignore:
Timestamp:
Dec 3, 2015, 3:07:55 AM (5 years ago)
Author:
Bruno Cornec
Message:
  • mr-label now works for setupping UUIDs and is called in mondorestore postprocessing accordingly. Fix #778.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/restore-scripts/mondo/label-partitions-as-necessary

    r3472 r3488  
    5757            $command
    5858        elif [ "$format" = "fat" ] || [ "$format" = "vfat" ]; then
    59             if [ -x "/sbin/fatlabel" ]; then
    60                 command="/sbin/fatlabel $mountpt $label"
    61                 LogIt "Running $command"
    62                 $command
     59            if [ "$opttun" = "-U" ]; then
     60                if [ -x "/usr/bin/mr-label" ]; then
     61                    command="/usr/bin/mr-label -U $label $mountpt"
     62                    LogIt "Running $command"
     63                    $command
     64                else
     65                    LogIt "No command available to update a UUID of a FAT/VFAT FS"
     66                fi
    6367            else
    64                 LogIt "No fatlabel command available to label a FAT/VFAT FS"
     68                if [ -x "/sbin/fatlabel" ]; then
     69                    command="/sbin/fatlabel $mountpt $label"
     70                    LogIt "Running $command"
     71                    $command
     72                else
     73                    LogIt "No fatlabel command available to label a FAT/VFAT FS"
     74                fi
    6575            fi
    6676        elif [ "$format" = "swap" ] ; then
Note: See TracChangeset for help on using the changeset viewer.