Add creation of a bootable s390 iso (#1478448)

Use mk-s390-cdboot to create a combined kernel+initrd and then build a
boot.iso using it.

Resolves: rhbz#1478448
This commit is contained in:
Brian C. Lane 2017-08-09 11:44:54 -07:00
parent 6007b35096
commit e5c6f9e8bc
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
ro

View File

@ -17,6 +17,7 @@ treeinfo stage2 mainimage images/${runtime_base}
install ${configdir}/redhat.exec ${BOOTDIR} install ${configdir}/redhat.exec ${BOOTDIR}
install ${configdir}/generic.prm ${BOOTDIR} install ${configdir}/generic.prm ${BOOTDIR}
install ${configdir}/genericdvd.prm ${BOOTDIR} install ${configdir}/genericdvd.prm ${BOOTDIR}
install ${configdir}/cdboot.prm ${BOOTDIR}
install ${configdir}/generic.ins . install ${configdir}/generic.ins .
## configure bootloader ## configure bootloader
@ -55,3 +56,18 @@ treeinfo images-${basearch} generic.ins generic.ins
if os.path.exists(workdir + "/iso-graft"): if os.path.exists(workdir + "/iso-graft"):
imggraft += " " + workdir + "/iso-graft" imggraft += " " + workdir + "/iso-graft"
%> %>
## Make a combined kernel+initrd image for the iso
runcmd mk-s390-cdboot -i ${outroot}/${KERNELDIR}/kernel.img \
-r ${outroot}/${KERNELDIR}/initrd.img \
-p ${outroot}/${BOOTDIR}/cdboot.prm \
-o ${outroot}/${BOOTDIR}/cdboot.img
## make boot.iso
runcmd mkisofs -o ${outroot}/images/boot.iso \
-b ${BOOTDIR}/cdboot.img -c ${BOOTDIR}/boot.cat \
-boot-load-size 4 -boot-info-table -no-emul-boot \
-R -J -V '${isolabel}' -T -graft-points \
${BOOTDIR}=${outroot}/${BOOTDIR} \
${imggraft}
treeinfo images-${basearch} boot.iso images/boot.iso