diff options
author | Jianxun Zhang <jianxun.zhang@linux.intel.com> | 2016-08-03 11:04:19 -0700 |
---|---|---|
committer | Tom Zanussi <tom.zanussi@linux.intel.com> | 2016-08-03 17:39:16 -0500 |
commit | 7c3a3fe5ab6bf428f0ba42d77181d1951480f3d1 (patch) | |
tree | 8f23faa91d491341e25c0f3c235c0bfd241ffb9f /common/recipes-core | |
parent | dd09b059bac9469f813ceb889593052d3ec4beb9 (diff) | |
download | meta-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/recipes-core')
-rw-r--r-- | common/recipes-core/initrdscripts/files/init-install-efi.sh | 8 |
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 e12a9d21..0b2ee46b 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 | ||
270 | fi | 278 | fi |
271 | set -e | 279 | set -e |
272 | 280 | ||