[PATCH] Add product.img support for arm templates
Brian C. Lane
bcl at redhat.com
Thu Nov 6 19:42:53 UTC 2014
---
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
## FIXME: ARM may need some extra boot config
--
1.9.3
More information about the anaconda-patches
mailing list