Ignore:
Timestamp:
Sep 29, 2015, 2:26:05 AM (9 years ago)
Author:
Bruno Cornec
Message:
  • Fix #778: Use fatlabel to recreate labelled FAT or VFAT FS when that command is available
File:
1 edited

Legend:

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

    r3437 r3472  
    5656            LogIt "Running $command"
    5757            $command
     58        elif [ "$format" = "fat" ] || [ "$format" = "vfat" ]; then
     59            if [ -x "/sbin/fatlabel" ]; then
     60                command="/sbin/fatlabel $mountpt $label"
     61                LogIt "Running $command"
     62                $command
     63            else
     64                LogIt "No fatlabel command available to label a FAT/VFAT FS"
     65            fi
    5866        elif [ "$format" = "swap" ] ; then
    5967            if [ "$opttun" = "-U" ]; then
Note: See TracChangeset for help on using the changeset viewer.