[PATCH] Add product.img support for arm templates

Vratislav Podzimek vpodzime at redhat.com
Fri Nov 7 06:44:02 UTC 2014


On Thu, 2014-11-06 at 11:42 -0800, Brian C. Lane wrote:
> ---
>  share/arm.tmpl      | 8 ++++++++
>  share/live/arm.tmpl | 8 ++++++++
>  2 files changed, 16 insertions(+)
> 
> diff --git a/share/arm.tmpl b/share/arm.tmpl
> index e2798b9..26ce990 100644
> --- a/share/arm.tmpl
> +++ b/share/arm.tmpl
> @@ -6,6 +6,7 @@ DTBDIR="images/pxeboot/dtb"
>  BOOTDIR="boot"
>  KERNELDIR=PXEBOOTDIR
>  LIVEDIR="LiveOS"
> +LORAXDIR="usr/share/lorax/"
>  
>  # different platforms use different kernel load addresses.
>  # include a 'baseline' kernel for no 'flavor'.
> @@ -114,6 +115,13 @@ mkdir ${KERNELDIR}
>  # add platform to treeinfo for Beaker support
>  treeinfo ${basearch} platforms ${platforms}
>  
> +# Create optional product.img and updates.img
> +<% images=["product", "updates"] %>
> +%for img in images:
> +    %if exists("%s/%s/" % (LORAXDIR, img)):
> +        installimg ${LORAXDIR}/${img}/ images/${img}.img
> +    %endif
> +%endfor
>  
>  ## FIXME: ARM may need some extra boot config
>  
> diff --git a/share/live/arm.tmpl b/share/live/arm.tmpl
> index 4c41d51..4b0cd82 100644
> --- a/share/live/arm.tmpl
> +++ b/share/live/arm.tmpl
> @@ -5,6 +5,7 @@ PXEBOOTDIR="images/pxeboot"
>  BOOTDIR="boot"
>  KERNELDIR=PXEBOOTDIR
>  LIVEDIR="LiveOS"
> +LORAXDIR="usr/share/lorax/"
>  
>  # different platforms use different kernel load addresses.
>  # include a 'baseline' kernel for no 'flavor'.
> @@ -69,6 +70,13 @@ mkdir ${KERNELDIR}
>      %endif
>  %endfor
>  
> +# Create optional product.img and updates.img
> +<% images=["product", "updates"] %>
> +%for img in images:
> +    %if exists("%s/%s/" % (LORAXDIR, img)):
> +        installimg ${LORAXDIR}/${img}/ images/${img}.img
> +    %endif
> +%endfor
No 'imgraft' for ARMs? This looks good to me as far as I understand our
Lorax templates.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list