505d5bf164
live media isn't exactly the same as the Anaconda install media. Right
now this amounts to needing a root= cmdline argument but in the future
there may be other differences.
This also reverts 5437557846
on the new copies of the templates.
39 lines
1.3 KiB
Cheetah
39 lines
1.3 KiB
Cheetah
<%page args="kernels, runtime_img, basearch, outroot, product, isolabel"/>
|
|
<%
|
|
configdir="tmp/config_files/sparc"
|
|
BOOTDIR="boot"
|
|
LIVEDIR="LiveOS"
|
|
%>
|
|
|
|
mkdir ${LIVEDIR}
|
|
install ${runtime_img} ${LIVEDIR}/squashfs.img
|
|
treeinfo stage2 mainimage ${LIVEDIR}/squashfs.img
|
|
|
|
## install bootloader and config files
|
|
install boot/*.b ${BOOTDIR}
|
|
install ${configdir}/silo.conf ${BOOTDIR}
|
|
install ${configdir}/boot.msg ${BOOTDIR}
|
|
|
|
## configure bootloader
|
|
replace @VERSION@ ${product.version} ${BOOTDIR}/boot.msg
|
|
replace @PRODUCT@ '${product.name}' ${BOOTDIR}/boot.msg
|
|
replace @ROOT@ 'root=live:CDLABEL=${isolabel|udev}' ${BOOTDIR}/silo.conf
|
|
|
|
## install kernels
|
|
## FIXME: this will overwrite if there are multiple sparc kernels
|
|
%for kernel in kernels:
|
|
installkernel images-${basearch} ${kernel.path} ${BOOTDIR}/vmlinuz
|
|
installinitrd images-${basearch} ${kernel.initrd.path} ${BOOTDIR}/initrd.img
|
|
%endfor
|
|
|
|
## make boot.iso
|
|
runcmd mkisofs -R -J -T -G /${BOOTDIR}/isofs.b -B ... \
|
|
-s /${BOOTDIR}/silo.conf -r -V '${isolabel}' \
|
|
-A "${product.name} ${product.version}" \
|
|
-x Fedora -x repodata \
|
|
-sparc-label "${product.name} ${product.version} Boot Disc" \
|
|
-o ${outroot}/images/boot.iso \
|
|
-graft-points ${BOOTDIR}=${outroot}/${BOOTDIR} \
|
|
${LIVEDIR}=${outroot}/${LIVEDIR}
|
|
treeinfo images-${basearch} boot.iso images/boot.iso
|