Problem with parted error

william Famy william.famy at laposte.net
Mon Sep 29 14:27:20 CEST 2008


Michael Tautschnig a écrit :
> 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.
___________________________________________
[wf:]
I will not be able to test now. The server (this where i found the bug) 
is in production and i do not have any acces to it now.

regards.
> 
> Thanks,
> Michael
> 



More information about the linux-fai-devel mailing list