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:
parent
634089ff19
commit
761c7e3dd8
@ -12,17 +12,15 @@ def valid_label(ch):
|
||||
|
||||
isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)
|
||||
|
||||
import os
|
||||
from os.path import basename
|
||||
%>
|
||||
from pylorax.sysutils import joinpaths
|
||||
|
||||
## Test ${runtime_img} to see if udf is needed
|
||||
<%
|
||||
import os
|
||||
from pylorax.sysutils import joinpaths
|
||||
if os.stat(joinpaths(inroot, runtime_img)).st_size >= 4*1024**3:
|
||||
udfargs = "-allow-limited-size"
|
||||
else:
|
||||
udfargs = ""
|
||||
# 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:
|
||||
isoargs = "-iso-level 3"
|
||||
else:
|
||||
isoargs = ""
|
||||
%>
|
||||
|
||||
mkdir images
|
||||
@ -49,8 +47,6 @@ replace @PRODUCT@ '${product.name}' ${GRUBDIR}/grub.cfg
|
||||
replace @VERSION@ ${product.version} ${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)
|
||||
%for kernel in kernels:
|
||||
<%
|
||||
@ -90,14 +86,14 @@ install ${configdir}/mapping ${BOOTDIR}
|
||||
%endfor
|
||||
|
||||
## make boot.iso
|
||||
runcmd mkisofs -v -U -J -R -T \
|
||||
runcmd xorrisofs -v -U -J -R ${isoargs} \
|
||||
-o ${outroot}/images/boot.iso \
|
||||
-part -hfs -r -l -sysid PPC \
|
||||
-r -l -sysid PPC \
|
||||
-A "${product.name} ${product.version}" -V '${isolabel}' \
|
||||
-volset "${product.version}" -volset-size 1 -volset-seqno 1 \
|
||||
-hfs-volid ${product.version} \
|
||||
-chrp-boot -map ${inroot}/${configdir}/mapping \
|
||||
-no-desktop -allow-multidot ${udfargs} -graft-points \
|
||||
-chrp-boot \
|
||||
-graft-points \
|
||||
.discinfo=${outroot}/.discinfo \
|
||||
${BOOTDIR}=${outroot}/${BOOTDIR} \
|
||||
${GRUBDIR}=${outroot}/${GRUBDIR} \
|
||||
${STAGE2IMG}=${outroot}/${STAGE2IMG} ${filegraft}
|
||||
|
@ -1,6 +1,6 @@
|
||||
Name: lorax-templates-rhel
|
||||
Version: 9.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: RHEL8 build templates for lorax and livemedia-creator
|
||||
|
||||
License: GPLv2+
|
||||
@ -31,6 +31,9 @@ cp -a 80-rhel/* $RPM_BUILD_ROOT/%{templatedir}
|
||||
%{templatedir}/*
|
||||
|
||||
%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
|
||||
- Update release version for RHEL 9.0
|
||||
- Remove spice-vdagent (bcl)
|
||||
|
Loading…
Reference in New Issue
Block a user