[meta-intel] [PATCHv5 08/10] rmc: support post-installation hook POSTINSTALL.sh

Saul Wold sgw at linux.intel.com
Wed Aug 3 13:09:45 PDT 2016


On Wed, 2016-08-03 at 11:04 -0700, Jianxun Zhang wrote:
> 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 at linux.intel.com>

Reviewed-by: Saul Wold <sgw at linux.intel.com>

> ---
>  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
> 


More information about the meta-intel mailing list