Force utf-8 in templates

i8 changed/i8/lorax-templates-msvsphere-8.7-1.el8.3
Arkady L. Shane 11 months ago
parent 73975cca0d
commit cafd64e7fd
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -1,14 +1,14 @@
From d6e9b1e138fb12a4c29e381ac6c358a196e7c5d8 Mon Sep 17 00:00:00 2001
From 953c0d9d3a23ca9218ec712660e802693a3913e7 Mon Sep 17 00:00:00 2001
From: tigro <tigro@msvsphere-os.ru>
Date: Fri, 22 Dec 2023 16:29:51 +0300
Subject: [PATCH 3/7] Translate installation image bootloader to Russian
Subject: [PATCH 3/4] Translate installation image bootloader to Russian
---
80-rhel/config_files/x86/grub2-efi.cfg | 15 ++++++----
80-rhel/config_files/x86/isolinux.cfg | 40 +++++++++++++++-----------
80-rhel/efi.tmpl | 7 +++++
80-rhel/x86.tmpl | 23 +++++++++++++--
4 files changed, 61 insertions(+), 24 deletions(-)
80-rhel/x86.tmpl | 24 ++++++++++++++--
4 files changed, 62 insertions(+), 24 deletions(-)
diff --git a/80-rhel/config_files/x86/grub2-efi.cfg b/80-rhel/config_files/x86/grub2-efi.cfg
index 8c9adad..5a7b61f 100644
@ -198,10 +198,15 @@ index d73d2d7..22bd0ba 100644
replace @KERNELNAME@ vmlinuz ${eficonf}
replace @KERNELPATH@ /${kdir}/vmlinuz ${eficonf}
diff --git a/80-rhel/x86.tmpl b/80-rhel/x86.tmpl
index 1b0a940..d5782c5 100644
index 1b0a940..161934a 100644
--- a/80-rhel/x86.tmpl
+++ b/80-rhel/x86.tmpl
@@ -25,6 +25,14 @@ from os.path import basename
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
<%page args="kernels, runtime_img, runtime_base, basearch, inroot, outroot, product, isolabel"/>
<%
configdir="tmp/config_files/x86"
@@ -25,6 +26,14 @@ from os.path import basename
udfargs = "-allow-limited-size"
else:
udfargs = ""
@ -216,7 +221,7 @@ index 1b0a940..d5782c5 100644
%>
mkdir images
@@ -43,12 +51,23 @@ install ${configdir}/boot.msg ${BOOTDIR}
@@ -43,12 +52,23 @@ install ${configdir}/boot.msg ${BOOTDIR}
install ${configdir}/grub.conf ${BOOTDIR}
install usr/share/anaconda/boot/syslinux-splash.png ${BOOTDIR}/splash.png
install boot/memtest* ${BOOTDIR}/memtest
@ -241,7 +246,7 @@ index 1b0a940..d5782c5 100644
## install kernels
mkdir ${KERNELDIR}
%for kernel in kernels:
@@ -93,7 +112,7 @@ hardlink ${KERNELDIR}/initrd.img ${BOOTDIR}
@@ -93,7 +113,7 @@ hardlink ${KERNELDIR}/initrd.img ${BOOTDIR}
treeinfo images-${basearch} ${img|basename} ${img}
%endfor
<% efihybrid = "--uefi --mac" if domacboot else "--uefi" %>

@ -1,15 +1,15 @@
From 26d414cfa8ddcceb2e3390355f55b9366bf6d70d Mon Sep 17 00:00:00 2001
From 968e8fe83b140e04129b5eb4cb6188717d132039 Mon Sep 17 00:00:00 2001
From: tigro <tigro@msvsphere-os.ru>
Date: Fri, 22 Dec 2023 16:42:33 +0300
Subject: [PATCH] Translate live image bootloader to Russian
Subject: [PATCH 4/4] Translate live image bootloader to Russian
---
80-rhel/live/config_files/x86/grub2-efi.cfg | 13 ++++++---
80-rhel/live/config_files/x86/isolinux.cfg | 29 +++++++++++---------
80-rhel/live/efi.tmpl | 6 +++++
80-rhel/live/x86.tmpl | 30 ++++++++++++++++++++-
80-rhel/live/config_files/x86/isolinux.cfg | 29 ++++++++++---------
80-rhel/live/efi.tmpl | 6 ++++
80-rhel/live/x86.tmpl | 31 ++++++++++++++++++++-
80-rhel/x86.tmpl | 2 +-
5 files changed, 61 insertions(+), 19 deletions(-)
5 files changed, 62 insertions(+), 19 deletions(-)
diff --git a/80-rhel/live/config_files/x86/grub2-efi.cfg b/80-rhel/live/config_files/x86/grub2-efi.cfg
index 2e24b15..4dc2fb2 100644
@ -161,10 +161,15 @@ index 572e07d..fa18025 100644
replace @KERNELNAME@ vmlinuz ${eficonf}
replace @KERNELPATH@ /${kdir}/vmlinuz ${eficonf}
diff --git a/80-rhel/live/x86.tmpl b/80-rhel/live/x86.tmpl
index 4d46043..6209734 100644
index 4d46043..e806299 100644
--- a/80-rhel/live/x86.tmpl
+++ b/80-rhel/live/x86.tmpl
@@ -43,13 +43,41 @@ install ${configdir}/boot.msg ${BOOTDIR}
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
<%page args="kernels, runtime_img, basearch, inroot, outroot, product, isolabel, extra_boot_args"/>
<%
configdir="tmp/config_files/x86"
@@ -43,13 +44,41 @@ install ${configdir}/boot.msg ${BOOTDIR}
install ${configdir}/grub.conf ${BOOTDIR}
install usr/share/anaconda/boot/syslinux-splash.png ${BOOTDIR}/splash.png
install boot/memtest* ${BOOTDIR}/memtest
@ -208,10 +213,10 @@ index 4d46043..6209734 100644
mkdir ${KERNELDIR}
%for kernel in kernels:
diff --git a/80-rhel/x86.tmpl b/80-rhel/x86.tmpl
index d5782c5..91fd965 100644
index 161934a..97da3b5 100644
--- a/80-rhel/x86.tmpl
+++ b/80-rhel/x86.tmpl
@@ -56,7 +56,7 @@ install ${configdir}/cp866-8x16.psf ${BOOTDIR}
@@ -57,7 +57,7 @@ install ${configdir}/cp866-8x16.psf ${BOOTDIR}
## configure bootloader
replace @VERSION@ ${product.version} ${BOOTDIR}/grub.conf ${BOOTDIR}/isolinux.cfg ${BOOTDIR}/*.msg

@ -1,6 +1,6 @@
Name: lorax-templates-msvsphere
Version: 8.7
Release: 1%{?dist}.2
Release: 1%{?dist}.3
Summary: MSVSphere build templates for lorax and livemedia-creator
License: GPLv2+
@ -44,6 +44,9 @@ install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{templatedir}/live/config_files/x86/
%{templatedir}/*
%changelog
* Tue Dec 26 2023 Arkady L. Shane <tigro@msvspere-os.ru> - 8.7-1.3
- Force utf-8 in templates
* Mon Dec 25 2023 Arkady L. Shane <tigro@msvspere-os.ru> - 8.7-1.2
- Added font to live config

Loading…
Cancel
Save