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:
parent
6007b35096
commit
e5c6f9e8bc
1
share/config_files/s390/cdboot.prm
Normal file
1
share/config_files/s390/cdboot.prm
Normal file
@ -0,0 +1 @@
|
|||||||
|
ro
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user