Here is a patch to the master script that correctly parses the output
from parted-1.7.0.

-Warren

diff -u -r1.51 master
--- master      10 Mar 2005 21:25:22 -0000      1.51
+++ master      20 May 2006 04:33:49 -0000
@@ -387,8 +387,10 @@
     || die "install.pl exited non-zero"
 
 # Determine partition number to use.
-active_part_line=`parted -s /dev/dsk print | grep 
'^[[:digit:]].*[[:space:]]boot'`
-active_part=${active_part_line%% *}
+active_part_line=`parted -s /dev/dsk print | grep 
'^.*[[:digit:]].*[[:space:]]boot'`
+active_part=${active_part_line%%  *}
+# Remove excess spaces?
+active_part=${active_part/ /}
 
 if [ -z "$active_part" ] ; then
     echo "Partition table:" >&2

Reply via email to