Delete the old file type prior to doing the upgrade.
Probably breaks the notion of doing a revert-to-prior
version, unfortunately.
mixedgauge "Upgrading..." 75
do_cmd sync >&2 || exit ${Abort}
-upgrade_iovm()
+upgrade_iovm_and_files()
{
case "${COMPONENT}" in
iovm)
;;
esac
}
-iterate_over_packages upgrade_iovm
+iterate_over_packages upgrade_iovm_and_files
GRUB_ACTIVE_PARTITION="hd0,1"
XC_PARTITION=$( pvdisplay -c | awk -F: '{ if ( $2 == "xenclient" ) print $1; }' )
do_cmd mount /dev/xenclient/storage /mnt/xenclient/storage >&2 || file_unwind || return 1
mkdir -p $(dirname "/mnt/xenclient/${DST}") || file_unwind || return 1
+ rm -f "/mnt/xenclient/${DST}" 2>/dev/null # ignore errors on this command.
cp "${SRC}" "/mnt/xenclient/${DST}" || file_unwind || return 1
file_unwind