#!/bin/bash

# This is a hack used to allow arbitrary files to be copied from the old image
# to the new image

# Don't put any files from "/var" here, they are currently not supported
RootCopyFileList='
usr/sbin/isi_upgrade_agent_d
usr/sbin/isi_upgrade_status
usr/sbin/isi_upgrade_reset
usr/sbin/isi_upgrade_supervisor
usr/sbin/isi_Upgrade_Agent.py
usr/lib/libisi_upgrade.so
usr/lib/libisi_upgrade.so.1
usr/local/lib/python2.7/site-packages/isi/sys/update/util.py
usr/share/upgrade
'

(cd / && tar -cvf - ${RootCopyFileList}) | (cd /usr/update/root && tar -xf -)

RootRemoveFileList='
usr/local/lib/python2.7/site-packages/isi/sys/update/util.pyc
'

rm -f ${RootRemoveFileList}
