Changeset 1755 in MondoRescue for branches/2.2.5/mondo/src/restore-scripts/mondo
- Timestamp:
- Oct 31, 2007, 1:11:44 AM (17 years ago)
- Location:
- branches/2.2.5/mondo/src/restore-scripts/mondo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/restore-scripts/mondo/hack-fstab
r1546 r1755 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/2.2.5/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
r1314 r1755 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 … … 35 34 if [ "$opttun" = "-U" ]; then 36 35 echo "Unable yet to identify swap with UUID" 36 echo "You'll have to modify your /etc/fstab after reboot" 37 echo "Replace the UUID found on the swap line by the one" 38 echo "given by the command vol_id -u $mountpt" 39 echo "And ask Ubuntu guys to deliver a mswap command with" 40 echo "a -U option to update the UUID to what we want !!!" 41 42 sleep 5 37 43 else 38 44 command="mkswap $opttun $label $mountpt"
Note:
See TracChangeset
for help on using the changeset viewer.