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 <[email protected]>
---
 common/recipes-core/initrdscripts/files/init-install-efi.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

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
     else
        echo "INSTALLER.CONFIG is not found, skip RMC deployment"
     fi
+
+    # Final retouching by calling post-install hook
+    if ${RMC_CMD} -B POSTINSTALL.sh -d "${RMC_DB}" -o /tmp/POSTINSTALL.sh; then
+        echo "Found POSTINSTALL.sh execute it..."
+        chmod 500 /tmp/POSTINSTALL.sh
+        /tmp/POSTINSTALL.sh
+        rm -rf /tmp/POSTINSTALL.sh
+    fi
 fi
 set -e
 
-- 
2.7.4

-- 
_______________________________________________
meta-intel mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to