From cb6d0758d9285b468dec11ebf77ec5981d3a29d6 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Tue, 7 Feb 2012 10:55:03 +0100 Subject: [PATCH] Add path to squashfs image to the treeinfo Related: rhbz#782108 --- share/ppc.tmpl | 3 +++ share/s390.tmpl | 3 ++- share/sparc.tmpl | 1 + share/x86.tmpl | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/share/ppc.tmpl b/share/ppc.tmpl index 7ac28e9a..66b10bc7 100644 --- a/share/ppc.tmpl +++ b/share/ppc.tmpl @@ -23,6 +23,9 @@ rootarg = "root=live:CDLABEL=%s" % isolabel mkdir ${LIVEDIR} install ${runtime_img} ${LIVEDIR}/squashfs.img +%for kernel in kernels: + treeinfo images-${kernel.arch} LiveOS ${LIVEDIR}/squashfs.img +%endfor ## install bootloaders. ## NOTE: there's two different bootloader setups here: diff --git a/share/s390.tmpl b/share/s390.tmpl index 1eae4695..95a1b499 100644 --- a/share/s390.tmpl +++ b/share/s390.tmpl @@ -1,4 +1,4 @@ -<%page args="kernels, runtime_img, basearch, outroot"/> +<%page args="kernels, runtime_img, runtime_base, basearch, outroot"/> <% configdir="tmp/config_files/s390" BOOTDIR="images" @@ -11,6 +11,7 @@ kernel = kernels[0] mkdir images install ${runtime_img} images +treeinfo images-${basearch} LiveOS images/${runtime_base} ## install bootloader (such as it is) and bootloader config install ${configdir}/redhat.exec ${BOOTDIR} diff --git a/share/sparc.tmpl b/share/sparc.tmpl index 4fe50505..89ea8231 100644 --- a/share/sparc.tmpl +++ b/share/sparc.tmpl @@ -7,6 +7,7 @@ LIVEDIR="LiveOS" mkdir ${LIVEDIR} install ${runtime_img} ${LIVEDIR}/squashfs.img +treeinfo images-${basearch} LiveOS ${LIVEDIR}/squashfs.img ## install bootloader and config files install boot/*.b ${BOOTDIR} diff --git a/share/x86.tmpl b/share/x86.tmpl index a5bd673b..4c0a371a 100644 --- a/share/x86.tmpl +++ b/share/x86.tmpl @@ -10,6 +10,7 @@ LIVEDIR="LiveOS" mkdir ${LIVEDIR} install ${runtime_img} ${LIVEDIR}/squashfs.img +treeinfo images-${basearch} LiveOS ${LIVEDIR}/squashfs.img ## install bootloader and config files mkdir ${BOOTDIR}