source: patches/yaboot-1.3.17-parted-1.patch @ 0488433

systemd
Last change on this file since 0488433 was 42084fb, checked in by William Harrington <kb0iic@…>, 10 years ago

Add yaboot 1.3.17 parted patch.

  • Property mode set to 100644
File size: 1.2 KB
  • yaboot-1.3.10/ybin/yabootconfig

    Submitted By: William Harrington kb0iic at cross-lfs dot org 
    Date: 2013-10-20
    Initial Package Version: 1.3.10
    Upstream Status: Unknown
    Origin: https://bugzilla.redhat.com/show_bug.cgi?id=121361
    Description: Add parted support to yabootconfig.
    
    old new  
    160160        FDISK=mac-fdisk
    161161    elif (command -v pdisk > /dev/null 2>&1) ; then
    162162        FDISK=pdisk
     163    elif (command -v parted > /dev/null 2>&1) ; then
     164        FDISK=parted
    163165    else
    164166        echo 1>&2 "$PRG: Unable to locate mac-fdisk"
    165167        return 1
     
    209211                BOOT="${DISK}${BOOT}"
    210212            fi
    211213            debug "BOOT after fixup: $BOOT\n"
    212         else
     214        elif [ "$FDISK" = mac-fdisk ] ; then
    213215            BOOT="$(v=`$FDISK -l "$DISK" 2>/dev/null | grep '\<Apple_Bootstrap\>'` ; echo ${v%%[ ]*})"
    214216            debug "BOOT=$BOOT\n"
     217        else
     218            BOOT="$(v=`$FDISK "$DISK" print 2>/dev/null | grep 'bootstrap'` ; echo ${v%%[ ]*})"
     219            debug "BOOT before fixup: $BOOT\n"
     220            if [ -n "$BOOT" ] ; then
     221                BOOT="${DISK}${BOOT}"
     222            fi
     223            debug "BOOT after fixup: $BOOT\n"
    215224        fi
    216225        if [ -z "$BOOT" ] ; then
    217226            echo 1>&2 "$PRG: Unable to locate bootstrap partition on $DISK..."
Note: See TracBrowser for help on using the repository browser.