Changeset 1770 in MondoRescue for branches/stable/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
r1341 r1770 11 11 label=`echo "$1" | awk '{print $1}' | cut -d'=' -f2` 12 12 format=`echo "$1" | awk '{print $3}'` 13 mountpt=`awk '{print $1,$5}' $mountlist | grep " $label$" | awk '{print $1}'` 13 14 14 15 if [ "`echo "$1" | grep -E 'LABEL='`" != "" ] ; then 15 16 opttun="-L" 16 mountpt=`awk '{print $1,$5}' $mountlist | grep " $label$" | awk '{print $1}'`17 17 elif [ "`echo "$1" | grep -E 'UUID='`" != "" ] ; then 18 18 opttun="-U" 19 mountpt=`awk '{print $1,$6}' $mountlist | grep " $label$" | awk '{print $1}'`20 19 else 21 20 # Nothing to do … … 34 33 elif [ "$format" = "swap" ] ; then 35 34 if [ "$opttun" = "-U" ]; then 36 echo "Unable yet to identify swap with UUID" 35 LogIt "Creating uuid $label on swap partition $label" 36 echo -n "$label" | perl -ne 's/-//g;chomp;print pack "H*",$_' | dd conv=notrunc "of=$mountpt" obs=1 seek=1036 37 37 else 38 38 command="mkswap $opttun $label $mountpt"
Note:
See TracChangeset
for help on using the changeset viewer.