Ignore:
Timestamp:
Mar 15, 2015, 3:02:52 AM (5 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bad sed call using | as separators (perlism)
  • Handle dev/cciss device type in parted2fidsk
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3358 r3364  
    250250        fi
    251251    else
    252         echo -en "`basename $mappath | tr '.' '#' | sed s/#kmap#gz// | sed s/#inc#gz//` " | tr '#' '.'
     252        echo -en "`basename $mappath | tr '.' '#' | sed 's/#kmap#gz//' | sed 's/#inc#gz//'` " | tr '#' '.'
    253253    fi
    254254
     
    15961596    # Some distro have a dmsetup conf at that point so removing it Cf: http://trac.mondorescue.org/ticket/651
    15971597    if [ "`which dmsetup`" != "" ]; then
    1598         block_id="`echo $USBPART | sed 's|/dev/||g'`"
     1598        block_id="`echo $USBPART | sed 's/\/dev\///g'`"
    15991599        if [[ "`dmsetup ls | awk '{print $1}' | grep $block_id`" != "" ]]; then
    16001600            LogFile "INFO: Removing $block_id from device mapper."
Note: See TracChangeset for help on using the changeset viewer.