Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.5
-
None
-
XSI-67
Description
When the sm package is upgraded from the version in XS 7.4 to the version in XS 7.5, via a RPM upgrade (e.g. using the XS 7.5 updates ISO), it displays an error message:
mv: cannot stat ‘/usr/sbin/lvmetad’: No such file or directory
This comes from the %post scriptlet:
mv /usr/sbin/lvmetad /usr/sbin/lvmetad_
Obviously, /usr/sbin/lvmetad had already been renamed during the initial server installation (though maybe not always, because I think there should be a "Requires(post): xenserver-lvm2" tag in the spec file, to make sure xenserver-lvm2 is installed before the %post scriptlet of sm is executed). So the renaming fails and the remainder of the %post scriptlet is not executed.
In theory, the sm %post scriptlet should never touch files that belong to another package (/usr/sbin/lvmetad belongs to lvm2). Isn't there a cleaner way to disable that executable, if it's really needed to disable it? Maybe as a part of the lvm2 package rather than in sm?