Description
In CH8.2, a new error message added up to the previous ones in the yum transaction:
INFO [2020-07-02 15:11:37] YUM: /usr/bin/create-guest-templates-wrapper: line 34: /etc/xensource-inventory: No such file or directory
It is a clean install.
This comes from the %postinstall scriptlet for the guest-templates-json package.
Here's an extract from create-guest-templates-wrapper, with an added comment to show the line that fails:
# Remove all default_templates if we have upgraded from a platform version < 2.1.1 remove_built_in_templates() { source /etc/xensource-inventory # <=========================================== THIS IS THE LINE source /var/tmp/.previousInventory 2> /dev/null ||: major=$(echo "$PLATFORM_VERSION" | sed 's/^\([0-9]*\).*/\1/') minor=$(echo "$PLATFORM_VERSION" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/') sub=$(echo "$PLATFORM_VERSION" | sed 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/') if [ "$major" -lt 2 -o \ \( "$major" -eq 2 -a "$minor" -lt 1 \) -o \ \( "$major" -eq 2 -a "$minor" -eq 1 -a "$sub" -lt 1 \) ]; then echo "Removing all default templates" has_default_template_field=check_has_default_template_field IFS=","; for uuid in $($XE template-list other-config:default_template=true --minimal); do echo "Removing old template: $($XE template-list uuid=$uuid params=name-label --minimal)" if $has_default_template_field; then $XE vm-param-set uuid=$uuid is-default-template=false is-a-template=false else $XE vm-param-set uuid=$uuid is-a-template=false other-config:default_template=false fi $XE vm-destroy uuid=$uuid done fi }