Changeset 1770 in MondoRescue for branches/stable/mondo/src/restore-scripts
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (17 years ago)
- Location:
- branches/stable/mondo/src/restore-scripts/mondo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/restore-scripts/mondo/hack-fstab
r1548 r1770 20 20 format=`echo "$incoming" | cut -d' ' -f3` 21 21 size=`echo "$incoming" | cut -d' ' -f4` 22 label=`echo "$incoming" | cut -d' ' -f5` 23 uuid=`echo "$incoming" | cut -d' ' -f6` 22 label=`echo "$incoming" | cut -d' ' -f5` 24 23 original_fstab_line=`grep " $mountpoint " $old_fstab | grep -v "#" | tr -s ' ' ' '` 25 24 if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then … … 28 27 fi 29 28 if [ "`echo "$original_fstab_line" | grep "UUID="`" != "" ] ; then 30 device="UUID=$ uuid"29 device="UUID=$label" 31 30 fi 32 31 fi -
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.