diff --git a/1015-add-boot.iso-for-loongarch64.patch b/1015-add-boot.iso-for-loongarch64.patch new file mode 100644 index 0000000000000000000000000000000000000000..c17ad306023cbf24feb7fe0d87bea9865ea2de82 --- /dev/null +++ b/1015-add-boot.iso-for-loongarch64.patch @@ -0,0 +1,32 @@ +From a5f95dedd078ea0b1c503fd4907decfe29d516b5 Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Tue, 23 Jan 2024 07:11:14 +0000 +Subject: [PATCH] add boot.iso for loongarch64 + +--- + 80-anolis/loongarch64.tmpl | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/80-anolis/loongarch64.tmpl b/80-anolis/loongarch64.tmpl +index a9284e0..629611d 100644 +--- a/80-anolis/loongarch64.tmpl ++++ b/80-anolis/loongarch64.tmpl +@@ -73,3 +73,15 @@ mkdir ${KERNELDIR} + install ${f} ${f|basename} + <% filegraft += " {0}={1}/{0}".format(basename(f), outroot) %> + %endfor ++ ++%if exists("boot/efi/EFI/*/gcdloongarch64.efi"): ++## make boot.iso ++runcmd xorrisofs -o ${outroot}/images/boot.iso \ ++ ${efiargs} -R -J -V '${isolabel}' \ ++ -graft-points -full-iso9660-filenames \ ++ .discinfo=${outroot}/.discinfo \ ++ ${KERNELDIR}=${outroot}/${KERNELDIR} \ ++ ${STAGE2IMG}=${outroot}/${STAGE2IMG} \ ++ ${efigraft} ${filegraft} ++treeinfo images-${basearch} boot.iso images/boot.iso ++%endif +-- +2.41.0 + diff --git a/lorax-templates-anolis.spec b/lorax-templates-anolis.spec index b26884eba00c201bb02266a77baf4af5c0f6af18..d2fe787a305c5b14edef728c1bfae21acb86599f 100644 --- a/lorax-templates-anolis.spec +++ b/lorax-templates-anolis.spec @@ -1,4 +1,4 @@ -%define anolis_release 16 +%define anolis_release 17 Name: lorax-templates-anolis Version: 37.0 @@ -25,6 +25,7 @@ Patch1011: 1011-remove-the-nm-applet.patch Patch1012: 1012-add-kmod-ast-in-anaconda.patch Patch1013: 1013-remove-strace-in-loongarch.patch Patch1014: 1014-add-loongarch64-support-for-lorax-templates-anolis.patch +Patch1015: 1015-add-boot.iso-for-loongarch64.patch # Where are these supposed to end up? @@ -50,6 +51,9 @@ cp -a 80-anolis/* $RPM_BUILD_ROOT/%{templatedir} %{templatedir}/* %changelog +* Tue Jan 23 2024 Wenlong Zhang - 37.0.1-17 +- add boot.iso for loongarch64 + * Tue Dec 12 2023 Wenlong Zhang - 37.0.1-16 - modify the patch 1014 for loongarch64