Error on remove/upgrade opsipxeconfd rpm
Verfasst: 17 Mär 2013, 09:06
Dear opsi developers,
I just tried to upgrade my opsi server (CentOS 6) for the 6 new packages released at version 4.0.3 from 4.0.2. I issued
All worked OK except for opsipxeconfd. Yum reported that it failed to remove the 4.0.2 package due to an error in the %preun script and, as a result, the system believed that it had both 4.0.3 and 4.0.2 version opsipxeconfd installed!
I downloaded the opsipxeconfd source rpm to find out what is wrong in the spec file and found this
The stop_on_removal is a Suse macro and will not work on RHEL/CentOS, hence the error.
I checked the opsiconfd spec file for comparison and found the same macro, but in a conditional test
Please fix this error in the opsipxeconfd spec file in the next package update.
For anyone else caught by this, get rid of the old version by running
Then reinstall the current version to make sure all is OK
Regards,
Stephen Jones
I just tried to upgrade my opsi server (CentOS 6) for the 6 new packages released at version 4.0.3 from 4.0.2. I issued
Code: Alles auswählen
yum update opsiconfd opsipxeconfd ...etc...
I downloaded the opsipxeconfd source rpm to find out what is wrong in the spec file and found this
Code: Alles auswählen
%preun
%stop_on_removal opsipxeconfd
I checked the opsiconfd spec file for comparison and found the same macro, but in a conditional test
Code: Alles auswählen
%preun
%if 0%{?suse_version}
%stop_on_removal opsiconfd
%else...
For anyone else caught by this, get rid of the old version by running
Code: Alles auswählen
rpm -e --noscripts opsipxeconfd-<old version>
Code: Alles auswählen
yum reinstall opsipxeconfd
Stephen Jones