path: root/common/recipes-core
diff options
authorJianxun Zhang <>2016-08-03 18:04:19 (GMT)
committerTom Zanussi <>2016-08-03 22:39:16 (GMT)
commit7c3a3fe5ab6bf428f0ba42d77181d1951480f3d1 (patch)
tree8f23faa91d491341e25c0f3c235c0bfd241ffb9f /common/recipes-core
parentdd09b059bac9469f813ceb889593052d3ec4beb9 (diff)
rmc: Add support for post-installation hook 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 <> Reviewed-by: Saul Wold <> Signed-off-by: Tom Zanussi <>
Diffstat (limited to 'common/recipes-core')
1 files changed, 8 insertions, 0 deletions
diff --git a/common/recipes-core/initrdscripts/files/ b/common/recipes-core/initrdscripts/files/
index e12a9d2..0b2ee46 100644
--- a/common/recipes-core/initrdscripts/files/
+++ b/common/recipes-core/initrdscripts/files/
@@ -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
271 # Final retouching by calling post-install hook
272 if ${RMC_CMD} -B -d "${RMC_DB}" -o /tmp/; then
273 echo "Found execute it..."
274 chmod 500 /tmp/
275 /tmp/
276 rm -rf /tmp/
277 fi
270fi 278fi
271set -e 279set -e
272 280