Changeset 2028 in MondoRescue for branches/2.2.7/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
- Timestamp:
- Oct 2, 2008, 1:24:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.7/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
r1780 r2028 14 14 15 15 if [ "`echo "$1" | grep -E 'LABEL='`" != "" ] ; then 16 opttun="-L"16 [ "$format" = "reiserfs" ] && opttun="-l" || opttun="-L" 17 17 elif [ "`echo "$1" | grep -E 'UUID='`" != "" ] ; then 18 opttun="-U"18 [ "$format" = "reiserfs" ] && opttun="-u" || opttun="-U" 19 19 else 20 20 # Nothing to do … … 31 31 LogIt "Running $command" 32 32 $command 33 elif [ "$format" = "reiserfs" ]; then 34 command="reiserfstune $opttun $label $mountpt" 35 LogIt "Running $command" 36 $command 33 37 elif [ "$format" = "swap" ] ; then 34 38 if [ "$opttun" = "-U" ]; then … … 41 45 fi 42 46 else 43 LogIt "I am NOT going to run tune2fs : the partition is format '$format', which doesn't like tune2fsanyway"47 LogIt "I am NOT going to run tune2fs/reiserfstune: the partition is format '$format', which doesn't like tune2fs/reiserfstune anyway" 44 48 fi 45 49 fi
Note:
See TracChangeset
for help on using the changeset viewer.