Changeset 1763 in MondoRescue for branches/2.2.5/mondo


Ignore:
Timestamp:
Nov 4, 2007, 1:02:45 AM (16 years ago)
Author:
Bruno Cornec
Message:

Fix the remaining problem with UUID support for swap partitions

File:
1 edited

Legend:

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

    r1755 r1763  
    3333        elif [ "$format" = "swap" ] ; then
    3434            if [ "$opttun" = "-U" ]; then
    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
     35                echo -n "$label" | perl -ne 's/-//g;chomp;print pack "H*",$_' | dd conv=notrunc "of=$mountpt" obs=1 seek=1036 2> .dev/null
     36                LogIt "Creating uuid on swap partition $label"
    4337            else
    4438                command="mkswap $opttun $label $mountpt"
Note: See TracChangeset for help on using the changeset viewer.