Ignore:
Timestamp:
Oct 31, 2007, 1:11:44 AM (16 years ago)
Author:
Bruno Cornec
Message:

Fix UUID support which was still broken.
Caveat: It can't work for swap partitions as there is no mksap -U option contrary to the -L option for LABEL
So at reboot you won't have swap activated and you'll have to run vol_id -u the_swap_partition to fix your /etc/fstab file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/restore-scripts/mondo/hack-fstab

    r1546 r1755  
    2020    format=`echo "$incoming"     | cut -d' ' -f3`
    2121    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`
    2423    original_fstab_line=`grep " $mountpoint " $old_fstab | grep -v "#" | tr -s ' ' ' '`
    2524    if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
     
    2827        fi
    2928        if [ "`echo "$original_fstab_line" | grep "UUID="`" != "" ] ; then
    30             device="UUID=$uuid"
     29            device="UUID=$label"
    3130        fi
    3231    fi
Note: See TracChangeset for help on using the changeset viewer.