Changeset 789


Ignore:
Timestamp:
Sep 13, 2006, 3:27:17 PM (13 years ago)
Author:
bruno
Message:

Fix a bug for swap labelled partition created by Altiris RDP (reported by michael.shapiro_at_hp.com)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r784 r789  
    14071407            fi
    14081408
    1409             # 4th try : pre-formated LABEL. Format is : LABEL=SWAP-mydevice. e.g. : LABEL=SWAP-hda5
     1409            # 4th try : pre-formated LABEL. Format is : LABEL=SWAP-mydevice or SW-mydevice. e.g. : LABEL=SWAP-hda5
     1410            # LABEL=SW-cciss/c0d0p3 (RDP)
    14101411            # SWAP only
    1411             if [ "x$actual_dev" = "x" -a  _"`echo $current_partition | /bin/grep -i 'LABEL=SWAP'`" != _"" ]; then
     1412            if [ "x$actual_dev" = "x" -a  _"`echo $current_partition | /bin/grep -iE 'LABEL=SWAP|LABEL=SW-'`" != _"" ]; then
    14121413                try_dev="`echo "$redhat_label" | /bin/cut -d '-' -f2`"
    14131414                present_dev="`/bin/cat /proc/swaps | /bin/grep -w /dev/$try_dev`"
Note: See TracChangeset for help on using the changeset viewer.