From: Niels S. R. <nri...@us...> - 2006-09-20 13:03:26
|
Update of /cvsroot/unattended/unattended/linuxboot/misc In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv1840 Modified Files: master Log Message: Adopt to changed output format of parted. Index: master =================================================================== RCS file: /cvsroot/unattended/unattended/linuxboot/misc/master,v retrieving revision 1.51 retrieving revision 1.52 diff -u -d -r1.51 -r1.52 --- master 10 Mar 2005 21:25:22 -0000 1.51 +++ master 20 Sep 2006 13:03:07 -0000 1.52 @@ -387,8 +387,8 @@ || 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=$(echo ${active_part_line} | sed 's/^ *//' | cut -d" " -f1) if [ -z "$active_part" ] ; then echo "Partition table:" >&2 |