Copy USM scripts to software dir on fresh install
This commit copies the USM scripts to a versioned script directory under /opt/software during a fresh install, so that in the future, when deploy precheck is supported for patches, the patches can use the GA major release precheck if they don't contain a new precheck script, and also for the scenario where an user wants to remove all the patches from the system, reverting to the GA release. Test Plan PASS: run "software deploy precheck" for current running release PASS: run "software deploy precheck" for a patch that does not include a precheck script and that uses the GA script instead Story: 2010676 Task: 49681 Change-Id: I1e6313789204107f56fce8da09f6b785994817ee Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
This commit is contained in:
parent
33a4be37bc
commit
1ec39f088f
|
@ -3140,6 +3140,13 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
# Copy current release scripts to software directory
|
||||
# TODO(heitormatsui) Treat the prepatched scenario, replacing .0 below accordingly
|
||||
versioned_dir="/opt/software/rel-${sw_release}.0/bin"
|
||||
ilog "Creating versioned USM scripts directory $versioned_dir for current release"
|
||||
mkdir -p "${IMAGE_ROOTFS}/var/rootdirs/${versioned_dir}"
|
||||
cp -r /instboot/upgrades/software-deploy/* ${IMAGE_ROOTFS}/var/rootdirs/${versioned_dir}
|
||||
|
||||
# Save the install scripts and kickstart logs
|
||||
mount /dev/mapper/cgts--vg-log--lv "${IMAGE_ROOTFS}/${LOG_DIR}"
|
||||
if [ ${?} -ne 0 ] ; then
|
||||
|
|
Loading…
Reference in New Issue