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

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

Add yaboot 1.3.17 parted patch.

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[42084fb]1Submitted By: William Harrington kb0iic at cross-lfs dot org
2Date: 2013-10-20
3Initial Package Version: 1.3.10
4Upstream Status: Unknown
5Origin: https://bugzilla.redhat.com/show_bug.cgi?id=121361
6Description: Add parted support to yabootconfig.
7
8--- yaboot-1.3.10/ybin/yabootconfig~ 2004-04-20 16:20:13.619375616 -0400
9+++ yaboot-1.3.10/ybin/yabootconfig 2004-04-20 16:32:40.519829488 -0400
10@@ -160,6 +160,8 @@
11 FDISK=mac-fdisk
12 elif (command -v pdisk > /dev/null 2>&1) ; then
13 FDISK=pdisk
14+ elif (command -v parted > /dev/null 2>&1) ; then
15+ FDISK=parted
16 else
17 echo 1>&2 "$PRG: Unable to locate mac-fdisk"
18 return 1
19@@ -209,9 +211,16 @@
20 BOOT="${DISK}${BOOT}"
21 fi
22 debug "BOOT after fixup: $BOOT\n"
23- else
24+ elif [ "$FDISK" = mac-fdisk ] ; then
25 BOOT="$(v=`$FDISK -l "$DISK" 2>/dev/null | grep '\<Apple_Bootstrap\>'` ; echo ${v%%[ ]*})"
26 debug "BOOT=$BOOT\n"
27+ else
28+ BOOT="$(v=`$FDISK "$DISK" print 2>/dev/null | grep 'bootstrap'` ; echo ${v%%[ ]*})"
29+ debug "BOOT before fixup: $BOOT\n"
30+ if [ -n "$BOOT" ] ; then
31+ BOOT="${DISK}${BOOT}"
32+ fi
33+ debug "BOOT after fixup: $BOOT\n"
34 fi
35 if [ -z "$BOOT" ] ; then
36 echo 1>&2 "$PRG: Unable to locate bootstrap partition on $DISK..."
Note: See TracBrowser for help on using the repository browser.