lorax/share/sparc.tmpl

39 lines
1.4 KiB
Cheetah
Raw Normal View History

2011-07-25 23:39:48 +00:00
<%page args="kernels, runtime_img, basearch, outroot, product"/>
<%
ANABOOTDIR="usr/share/anaconda/boot"
BOOTDIR="boot"
KERNELDIR=BOOTDIR
%>
mkdir images
install ${runtime_img} images/install.img
install boot/*.b ${BOOTDIR}
install ${ANABOOTDIR}/silo.conf ${BOOTDIR}
install ${ANABOOTDIR}/boot.msg ${BOOTDIR}/boot.msg
replace %VERSION% ${product.version} ${BOOTDIR}/boot.msg
replace %PRODUCT% ${product.name} ${BOOTDIR}/boot.msg
%for kernel in kernels:
installkernel images-${basearch} ${kernel.path} ${KERNELDIR}/vmlinuz
installinitrd images-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img
%endfor
2011-06-30 20:05:04 +00:00
replace %ROOT% 'root=live:CDLABEL=PBOOT' ${BOOTDIR}/silo.conf
## FIXME: silo.conf is missing %ROOT%. workaround with manual twiddling
<% cdroot='root=live:CDLABEL=PBOOT' %>
replace 'alias=install' 'alias=install\n\tappend=${cdroot}' ${BOOTDIR}/silo.conf
replace 'append=text' 'append="text ${cdroot}"' ${BOOTDIR}/silo.conf
replace 'append=ks' 'append="ks ${cdroot}"' ${BOOTDIR}/silo.conf
runcmd mkisofs -R -J -T -G /${BOOTDIR}/isofs.b -B ... \
-s /${BOOTDIR}/silo.conf -r -V "PBOOT" \
-A "${product.name} ${product.version}" \
-x Fedora -x repodata \
-sparc-label "${product.name} ${product.version} Boot Disc" \
-o ${outroot}/images/boot.iso \
-graft-points boot=${outroot}/${BOOTDIR} \
LiveOS/squashfs.img=${outroot}/images/install.img
treeinfo images-${basearch} boot.iso images/boot.iso