2011-10-13 00:08:31 +00:00
|
|
|
<%page args="kernels, runtime_img, basearch, outroot, product, isolabel"/>
|
2011-05-09 14:47:25 +00:00
|
|
|
<%
|
2011-10-21 20:12:12 +00:00
|
|
|
configdir="tmp/config_files/sparc"
|
2011-05-09 14:47:25 +00:00
|
|
|
BOOTDIR="boot"
|
2011-10-11 18:58:30 +00:00
|
|
|
LIVEDIR="LiveOS"
|
2011-05-09 14:47:25 +00:00
|
|
|
%>
|
|
|
|
|
2011-10-11 18:58:30 +00:00
|
|
|
mkdir ${LIVEDIR}
|
|
|
|
install ${runtime_img} ${LIVEDIR}/squashfs.img
|
2012-02-09 15:59:15 +00:00
|
|
|
treeinfo stage2 mainimage ${LIVEDIR}/squashfs.img
|
2011-06-23 00:22:24 +00:00
|
|
|
|
2011-10-21 20:12:12 +00:00
|
|
|
## install bootloader and config files
|
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}
|
2011-10-21 20:12:12 +00:00
|
|
|
install ${configdir}/boot.msg ${BOOTDIR}
|
2011-05-09 14:47:25 +00:00
|
|
|
|
2011-10-21 20:12:12 +00:00
|
|
|
## configure bootloader
|
2011-08-09 00:04:05 +00:00
|
|
|
replace @VERSION@ ${product.version} ${BOOTDIR}/boot.msg
|
2012-03-07 10:27:11 +00:00
|
|
|
replace @PRODUCT@ '${product.name}' ${BOOTDIR}/boot.msg
|
2011-10-21 20:12:12 +00:00
|
|
|
replace @ROOT@ 'root=live:CDLABEL=${isolabel|udev}' ${BOOTDIR}/silo.conf
|
2011-05-09 14:47:25 +00:00
|
|
|
|
2011-10-21 20:12:12 +00:00
|
|
|
## install kernels
|
|
|
|
## FIXME: this will overwrite if there are multiple sparc kernels
|
2011-05-09 14:47:25 +00:00
|
|
|
%for kernel in kernels:
|
2011-10-11 18:56:39 +00:00
|
|
|
installkernel images-${basearch} ${kernel.path} ${BOOTDIR}/vmlinuz
|
|
|
|
installinitrd images-${basearch} ${kernel.initrd.path} ${BOOTDIR}/initrd.img
|
2011-05-09 14:47:25 +00:00
|
|
|
%endfor
|
|
|
|
|
2011-10-21 20:12:12 +00:00
|
|
|
## make boot.iso
|
2011-05-09 14:47:25 +00:00
|
|
|
runcmd mkisofs -R -J -T -G /${BOOTDIR}/isofs.b -B ... \
|
2011-10-13 00:08:31 +00:00
|
|
|
-s /${BOOTDIR}/silo.conf -r -V '${isolabel}' \
|
2011-05-09 14:47:25 +00:00
|
|
|
-A "${product.name} ${product.version}" \
|
|
|
|
-x Fedora -x repodata \
|
|
|
|
-sparc-label "${product.name} ${product.version} Boot Disc" \
|
|
|
|
-o ${outroot}/images/boot.iso \
|
2011-10-11 18:58:30 +00:00
|
|
|
-graft-points ${BOOTDIR}=${outroot}/${BOOTDIR} \
|
|
|
|
${LIVEDIR}=${outroot}/${LIVEDIR}
|
2011-05-09 14:47:25 +00:00
|
|
|
treeinfo images-${basearch} boot.iso images/boot.iso
|