summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJianxun Zhang <jianxun.zhang@linux.intel.com>2016-08-03 18:04:19 (GMT)
committerTom Zanussi <tom.zanussi@linux.intel.com>2016-08-03 22:39:16 (GMT)
commit7c3a3fe5ab6bf428f0ba42d77181d1951480f3d1 (patch)
tree8f23faa91d491341e25c0f3c235c0bfd241ffb9f /common
parentdd09b059bac9469f813ceb889593052d3ec4beb9 (diff)
downloadmeta-intel-7c3a3fe5ab6bf428f0ba42d77181d1951480f3d1.tar.gz
rmc: Add support for POSTINSTALL.sh post-installation hook
POSTINSTALL.sh provides developer a final chance to retouch almost anything deployed on target before unmounting partitions and reboot at the end of an installation session. RMC installer executes this script if it can be queried from RMC database file for the running board. Some steps to make system bootable still happen after this hook. Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com> Reviewed-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Diffstat (limited to 'common')
-rw-r--r--common/recipes-core/initrdscripts/files/init-install-efi.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/recipes-core/initrdscripts/files/init-install-efi.sh b/common/recipes-core/initrdscripts/files/init-install-efi.sh
index e12a9d2..0b2ee46 100644
--- a/common/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/common/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -267,6 +267,14 @@ if [ -f "${RMC_DB}" ] && [ -f "${RMC_CMD}" ]; then
267 else 267 else
268 echo "INSTALLER.CONFIG is not found, skip RMC deployment" 268 echo "INSTALLER.CONFIG is not found, skip RMC deployment"
269 fi 269 fi
270
271 # Final retouching by calling post-install hook
272 if ${RMC_CMD} -B POSTINSTALL.sh -d "${RMC_DB}" -o /tmp/POSTINSTALL.sh; then
273 echo "Found POSTINSTALL.sh execute it..."
274 chmod 500 /tmp/POSTINSTALL.sh
275 /tmp/POSTINSTALL.sh
276 rm -rf /tmp/POSTINSTALL.sh
277 fi
270fi 278fi
271set -e 279set -e
272 280