2011-07-25 23:39:48 +00:00
|
|
|
<%page args="kernels, runtime_img, basearch, outroot, product"/>
|
2011-05-09 14:47:25 +00:00
|
|
|
<%
|
2011-08-09 00:35:35 +00:00
|
|
|
configdir="tmp/config_files"
|
2011-05-09 14:47:25 +00:00
|
|
|
BOOTDIR="boot"
|
|
|
|
KERNELDIR=BOOTDIR
|
|
|
|
%>
|
|
|
|
|
2011-06-23 00:22:24 +00:00
|
|
|
mkdir images
|
2011-06-24 21:26:01 +00:00
|
|
|
install ${runtime_img} images/install.img
|
2011-06-23 00:22:24 +00:00
|
|
|
|
2011-05-09 14:47:25 +00:00
|
|
|
install boot/*.b ${BOOTDIR}
|
2011-08-09 00:35:35 +00:00
|
|
|
install ${configdir}/silo.conf ${BOOTDIR}
|
|
|
|
install ${configdir}/boot.msg.sparc ${BOOTDIR}/boot.msg
|
2011-05-09 14:47:25 +00:00
|
|
|
|
2011-08-09 00:04:05 +00:00
|
|
|
replace @VERSION@ ${product.version} ${BOOTDIR}/boot.msg
|
|
|
|
replace @PRODUCT@ ${product.name} ${BOOTDIR}/boot.msg
|
2011-05-09 14:47:25 +00:00
|
|
|
|
|
|
|
%for kernel in kernels:
|
|
|
|
installkernel images-${basearch} ${kernel.path} ${KERNELDIR}/vmlinuz
|
|
|
|
installinitrd images-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img
|
|
|
|
%endfor
|
|
|
|
|
2011-08-09 00:04:05 +00:00
|
|
|
replace @ROOT@ root=live:CDLABEL=PBOOT ${BOOTDIR}/silo.conf
|
2011-06-30 20:05:04 +00:00
|
|
|
|
2011-05-09 14:47:25 +00:00
|
|
|
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 \
|
2011-06-23 00:22:24 +00:00
|
|
|
-graft-points boot=${outroot}/${BOOTDIR} \
|
2011-06-24 21:26:01 +00:00
|
|
|
LiveOS/squashfs.img=${outroot}/images/install.img
|
2011-05-09 14:47:25 +00:00
|
|
|
treeinfo images-${basearch} boot.iso images/boot.iso
|