Problem with parted error

Michael Tautschnig mt at debian.org
Mon Sep 29 09:54:10 CEST 2008


Hi!

> It seems that parted has changed it's error message.  The error that y'all 
> designate as parted_2 has changed format.  I'm using lenny to test everything 
> on, and I'm using fai-client 3.2.10 (due to bug #497066).  I'm attaching a 
> patch that should hopefully fix this problem, at least until they change the 
> error message again.
> 
Thanks for debugging this!

> Also, it seems that the -d switch isn't working, although export debug=1 works 
> just fine.
> 
Ok, I'll look into this one.

> Index: lib/setup-storage/Exec.pm
> ===================================================================
> --- lib/setup-storage/Exec.pm	(revision 5150)
> +++ lib/setup-storage/Exec.pm	(working copy)
> @@ -61,8 +61,8 @@
>    {
>      error        => "parted_2",
>      message      => "Parted could not read a disk label\n",
> -    stderr_regex => "Error: Unable to open .* - unrecognised disk label",
> -    stdout_regex => "",
> +    stdout_regex => "Error: .* unrecognised disk label",
> +    stderr_regex => "",
>      program      => "parted",
>      response     => "warn",
>    },

Could you please confirm that you also tested this (I guess so, but just to make
sure we don't introduce an error right before the release)? The most important
point seems to be that the error message is now printed on stdout instead of
stderr. As Andreas suggested, I'll try to modify this patch such that it works
for both, the old and the new version.

Thanks,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai-devel/attachments/20080929/e21eb695/attachment.bin 


More information about the linux-fai-devel mailing list