Regarding
http://sourceforge.net/mailarchive/message.php?msg_name=alpine.LRH.1.00.0808052230460.11835%40dns1.troubletext.com
, Illegal division by zero when using the `--unit %' switch with
si_prepare client:
In version 4.1.6, the error is reported on line 1040 of /usr/lib/
systemimager/perl/SystemImager/Common.pm, but the problem is with line
507 of the same file. Using `parted' (version 1.8.1 on RHEL 5.1), the
value in the "Number" column is indented one space, therefore the
regular expression /^\d+\s+/ won't capture any lines from parted's
output.
To fix:
/usr/lib/systemimager/perl/SystemImager/Common.pm:504
- if (/^\d+\s+/) {
+ if (/^\s*\d+\s+/) {
This will allow any number of whitespace characters before the
partition information that is later extracted. This fixed
si_prepareimage for me and it created a valid autoinstallscript.conf
using percentages, though perhaps there should be a check for
division by zero on line 1040 as well.
-Greg
--
Greg Fiumara
(301) 975-3891
Image Group - NIST
[email protected]
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users