f640a2faab
New images find their root device by looking at the CDLABEL. Since pungi is building ISO images separately from lorax, if it uses a different ISO Volume Label we'll end up with unbootable images. This changes the volume labels to match what pungi uses, so both should boot OK.
34 lines
1.1 KiB
Cheetah
34 lines
1.1 KiB
Cheetah
<%page args="kernels, runtime_img, basearch, outroot, product, isolabel"/>
|
|
<%
|
|
configdir="tmp/config_files"
|
|
BOOTDIR="boot"
|
|
LIVEDIR="LiveOS"
|
|
%>
|
|
|
|
mkdir ${LIVEDIR}
|
|
install ${runtime_img} ${LIVEDIR}/squashfs.img
|
|
|
|
install boot/*.b ${BOOTDIR}
|
|
install ${configdir}/silo.conf ${BOOTDIR}
|
|
install ${configdir}/boot.msg.sparc ${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} ${BOOTDIR}/vmlinuz
|
|
installinitrd images-${basearch} ${kernel.initrd.path} ${BOOTDIR}/initrd.img
|
|
%endfor
|
|
|
|
replace @ROOT@ 'root=live:CDLABEL=${isolabel|udev}' ${BOOTDIR}/silo.conf
|
|
|
|
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
|