Replace ppc64le template with upstream version

Fixes failure to build ppc64le ISO images.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2020-10-28 20:00:35 -04:00
parent 634089ff19
commit 761c7e3dd8
No known key found for this signature in database
GPG Key ID: 45DB85A568286D11
2 changed files with 16 additions and 17 deletions

View File

@ -12,17 +12,15 @@ def valid_label(ch):
isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel) isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)
import os
from os.path import basename from os.path import basename
%> from pylorax.sysutils import joinpaths
## Test ${runtime_img} to see if udf is needed # Test the runtime_img, if it is > 4GiB we need to set -iso-level to 3
<% if os.stat(joinpaths(inroot, runtime_img)).st_size >= 4*1024**3:
import os isoargs = "-iso-level 3"
from pylorax.sysutils import joinpaths else:
if os.stat(joinpaths(inroot, runtime_img)).st_size >= 4*1024**3: isoargs = ""
udfargs = "-allow-limited-size"
else:
udfargs = ""
%> %>
mkdir images mkdir images
@ -49,8 +47,6 @@ replace @PRODUCT@ '${product.name}' ${GRUBDIR}/grub.cfg
replace @VERSION@ ${product.version} ${GRUBDIR}/grub.cfg replace @VERSION@ ${product.version} ${GRUBDIR}/grub.cfg
replace @ROOT@ 'inst.stage2=hd:LABEL=${isolabel|udev}' ${GRUBDIR}/grub.cfg replace @ROOT@ 'inst.stage2=hd:LABEL=${isolabel|udev}' ${GRUBDIR}/grub.cfg
install ${configdir}/mapping ${BOOTDIR}
## Install kernel and bootloader config (in separate places for each arch) ## Install kernel and bootloader config (in separate places for each arch)
%for kernel in kernels: %for kernel in kernels:
<% <%
@ -90,14 +86,14 @@ install ${configdir}/mapping ${BOOTDIR}
%endfor %endfor
## make boot.iso ## make boot.iso
runcmd mkisofs -v -U -J -R -T \ runcmd xorrisofs -v -U -J -R ${isoargs} \
-o ${outroot}/images/boot.iso \ -o ${outroot}/images/boot.iso \
-part -hfs -r -l -sysid PPC \ -r -l -sysid PPC \
-A "${product.name} ${product.version}" -V '${isolabel}' \ -A "${product.name} ${product.version}" -V '${isolabel}' \
-volset "${product.version}" -volset-size 1 -volset-seqno 1 \ -volset "${product.version}" -volset-size 1 -volset-seqno 1 \
-hfs-volid ${product.version} \ -chrp-boot \
-chrp-boot -map ${inroot}/${configdir}/mapping \ -graft-points \
-no-desktop -allow-multidot ${udfargs} -graft-points \ .discinfo=${outroot}/.discinfo \
${BOOTDIR}=${outroot}/${BOOTDIR} \ ${BOOTDIR}=${outroot}/${BOOTDIR} \
${GRUBDIR}=${outroot}/${GRUBDIR} \ ${GRUBDIR}=${outroot}/${GRUBDIR} \
${STAGE2IMG}=${outroot}/${STAGE2IMG} ${filegraft} ${STAGE2IMG}=${outroot}/${STAGE2IMG} ${filegraft}

View File

@ -1,6 +1,6 @@
Name: lorax-templates-rhel Name: lorax-templates-rhel
Version: 9.0 Version: 9.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: RHEL8 build templates for lorax and livemedia-creator Summary: RHEL8 build templates for lorax and livemedia-creator
License: GPLv2+ License: GPLv2+
@ -31,6 +31,9 @@ cp -a 80-rhel/* $RPM_BUILD_ROOT/%{templatedir}
%{templatedir}/* %{templatedir}/*
%changelog %changelog
* Wed Oct 28 2020 Stephen Gallagher <sgallagh@redhat.com> - 9.0-2
- Replace ppc64le template with upstream version
* Tue Oct 27 2020 Brian C. Lane <bcl@redhat.com> - 9.0-1 * Tue Oct 27 2020 Brian C. Lane <bcl@redhat.com> - 9.0-1
- Update release version for RHEL 9.0 - Update release version for RHEL 9.0
- Remove spice-vdagent (bcl) - Remove spice-vdagent (bcl)