|
|
@ -1,17 +1,17 @@
|
|
|
|
From 043884dd1c10537ccdca06943d9cea4b350450b9 Mon Sep 17 00:00:00 2001
|
|
|
|
From 675effa97f762b5f2bfc6e7244d2035e4ec3ddd4 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Eugene Zamriy <evgeniy.zamriy@softline.com>
|
|
|
|
From: Eugene Zamriy <evgeniy.zamriy@softline.com>
|
|
|
|
Date: Wed, 26 Jul 2023 23:51:00 +0300
|
|
|
|
Date: Wed, 26 Jul 2023 23:51:00 +0300
|
|
|
|
Subject: [PATCH 2/8] Translate installation image bootloader to Russian
|
|
|
|
Subject: [PATCH 2/2] Translate installation image bootloader to Russian
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
80-rhel/aarch64.tmpl | 12 +++++++++-
|
|
|
|
80-rhel/aarch64.tmpl | 12 +++++++++-
|
|
|
|
80-rhel/config_files/aarch64/grub2-efi.cfg | 15 ++++++++----
|
|
|
|
80-rhel/config_files/aarch64/grub2-efi.cfg | 15 ++++++++----
|
|
|
|
80-rhel/config_files/x86/grub2-bios.cfg | 17 ++++++++-----
|
|
|
|
80-rhel/config_files/x86/grub2-bios.cfg | 19 +++++++++------
|
|
|
|
80-rhel/config_files/x86/grub2-efi.cfg | 13 ++++++----
|
|
|
|
80-rhel/config_files/x86/grub2-efi.cfg | 15 ++++++++----
|
|
|
|
80-rhel/config_files/x86/isolinux.cfg | 28 ++++++++++++----------
|
|
|
|
80-rhel/config_files/x86/isolinux.cfg | 28 ++++++++++++----------
|
|
|
|
80-rhel/efi.tmpl | 9 ++++++-
|
|
|
|
80-rhel/efi.tmpl | 9 ++++++-
|
|
|
|
80-rhel/x86.tmpl | 12 +++++++++-
|
|
|
|
80-rhel/x86.tmpl | 23 ++++++++++++++++--
|
|
|
|
7 files changed, 76 insertions(+), 30 deletions(-)
|
|
|
|
7 files changed, 88 insertions(+), 33 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/80-rhel/aarch64.tmpl b/80-rhel/aarch64.tmpl
|
|
|
|
diff --git a/80-rhel/aarch64.tmpl b/80-rhel/aarch64.tmpl
|
|
|
|
index 14099d6..353436a 100644
|
|
|
|
index 14099d6..353436a 100644
|
|
|
@ -87,7 +87,7 @@ index 1ce5d33..5dd2002 100644
|
|
|
|
initrd @INITRDPATH@
|
|
|
|
initrd @INITRDPATH@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
diff --git a/80-rhel/config_files/x86/grub2-bios.cfg b/80-rhel/config_files/x86/grub2-bios.cfg
|
|
|
|
diff --git a/80-rhel/config_files/x86/grub2-bios.cfg b/80-rhel/config_files/x86/grub2-bios.cfg
|
|
|
|
index cfca1bf..8b8c0ef 100644
|
|
|
|
index cfca1bf..30dcd9e 100644
|
|
|
|
--- a/80-rhel/config_files/x86/grub2-bios.cfg
|
|
|
|
--- a/80-rhel/config_files/x86/grub2-bios.cfg
|
|
|
|
+++ b/80-rhel/config_files/x86/grub2-bios.cfg
|
|
|
|
+++ b/80-rhel/config_files/x86/grub2-bios.cfg
|
|
|
|
@@ -5,7 +5,12 @@ function load_video {
|
|
|
|
@@ -5,7 +5,12 @@ function load_video {
|
|
|
@ -118,8 +118,9 @@ index cfca1bf..8b8c0ef 100644
|
|
|
|
initrd @INITRDPATH@
|
|
|
|
initrd @INITRDPATH@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-submenu 'Troubleshooting -->' {
|
|
|
|
-submenu 'Troubleshooting -->' {
|
|
|
|
|
|
|
|
- menuentry 'Install @PRODUCT@ @VERSION@ in basic graphics mode' --class fedora --class gnu-linux --class gnu --class os {
|
|
|
|
+submenu 'Устранение неполадок -->' {
|
|
|
|
+submenu 'Устранение неполадок -->' {
|
|
|
|
menuentry 'Install @PRODUCT@ @VERSION@ in basic graphics mode' --class fedora --class gnu-linux --class gnu --class os {
|
|
|
|
+ menuentry 'Установить @PRODUCT@ @VERSION@ (базовый графический режим)' --class fedora --class gnu-linux --class gnu --class os {
|
|
|
|
linux @KERNELPATH@ @ROOT@ nomodeset quiet
|
|
|
|
linux @KERNELPATH@ @ROOT@ nomodeset quiet
|
|
|
|
initrd @INITRDPATH@
|
|
|
|
initrd @INITRDPATH@
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -138,7 +139,7 @@ index cfca1bf..8b8c0ef 100644
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
diff --git a/80-rhel/config_files/x86/grub2-efi.cfg b/80-rhel/config_files/x86/grub2-efi.cfg
|
|
|
|
diff --git a/80-rhel/config_files/x86/grub2-efi.cfg b/80-rhel/config_files/x86/grub2-efi.cfg
|
|
|
|
index 8c9adad..0d5bd2d 100644
|
|
|
|
index 8c9adad..b174e48 100644
|
|
|
|
--- a/80-rhel/config_files/x86/grub2-efi.cfg
|
|
|
|
--- a/80-rhel/config_files/x86/grub2-efi.cfg
|
|
|
|
+++ b/80-rhel/config_files/x86/grub2-efi.cfg
|
|
|
|
+++ b/80-rhel/config_files/x86/grub2-efi.cfg
|
|
|
|
@@ -9,7 +9,12 @@ function load_video {
|
|
|
|
@@ -9,7 +9,12 @@ function load_video {
|
|
|
@ -169,8 +170,9 @@ index 8c9adad..0d5bd2d 100644
|
|
|
|
initrdefi @INITRDPATH@
|
|
|
|
initrdefi @INITRDPATH@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-submenu 'Troubleshooting -->' {
|
|
|
|
-submenu 'Troubleshooting -->' {
|
|
|
|
|
|
|
|
- menuentry 'Install @PRODUCT@ @VERSION@ in basic graphics mode' --class fedora --class gnu-linux --class gnu --class os {
|
|
|
|
+submenu 'Устранение неполадок -->' {
|
|
|
|
+submenu 'Устранение неполадок -->' {
|
|
|
|
menuentry 'Install @PRODUCT@ @VERSION@ in basic graphics mode' --class fedora --class gnu-linux --class gnu --class os {
|
|
|
|
+ menuentry 'Установить @PRODUCT@ @VERSION@ (базовый графический режим)' --class fedora --class gnu-linux --class gnu --class os {
|
|
|
|
linuxefi @KERNELPATH@ @ROOT@ nomodeset quiet
|
|
|
|
linuxefi @KERNELPATH@ @ROOT@ nomodeset quiet
|
|
|
|
initrdefi @INITRDPATH@
|
|
|
|
initrdefi @INITRDPATH@
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -299,7 +301,7 @@ index 80600d2..d36aefa 100644
|
|
|
|
replace @KERNELNAME@ vmlinuz ${eficonf}
|
|
|
|
replace @KERNELNAME@ vmlinuz ${eficonf}
|
|
|
|
replace @KERNELPATH@ /${kdir}/vmlinuz ${eficonf}
|
|
|
|
replace @KERNELPATH@ /${kdir}/vmlinuz ${eficonf}
|
|
|
|
diff --git a/80-rhel/x86.tmpl b/80-rhel/x86.tmpl
|
|
|
|
diff --git a/80-rhel/x86.tmpl b/80-rhel/x86.tmpl
|
|
|
|
index 3945ce4..9dbd419 100644
|
|
|
|
index 3945ce4..b83a484 100644
|
|
|
|
--- a/80-rhel/x86.tmpl
|
|
|
|
--- a/80-rhel/x86.tmpl
|
|
|
|
+++ b/80-rhel/x86.tmpl
|
|
|
|
+++ b/80-rhel/x86.tmpl
|
|
|
|
@@ -22,6 +22,16 @@ if os.stat(joinpaths(inroot, runtime_img)).st_size >= 4*1024**3:
|
|
|
|
@@ -22,6 +22,16 @@ if os.stat(joinpaths(inroot, runtime_img)).st_size >= 4*1024**3:
|
|
|
@ -319,7 +321,27 @@ index 3945ce4..9dbd419 100644
|
|
|
|
%>
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
|
|
mkdir images
|
|
|
|
mkdir images
|
|
|
|
@@ -60,7 +70,7 @@ replace @ROOT@ 'inst.stage2=hd:LABEL=${isolabel|udev}' ${GRUB2DIR}/grub.cfg
|
|
|
|
@@ -42,9 +52,18 @@ mkdir ${KERNELDIR}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## configure grub2 config file
|
|
|
|
|
|
|
|
mkdir ${GRUB2DIR}
|
|
|
|
|
|
|
|
+mkdir ${GRUB2DIR}/fonts/
|
|
|
|
|
|
|
|
+mkdir ${GRUB2DIR}/locale/
|
|
|
|
|
|
|
|
+install usr/share/grub/unicode.pf2 ${GRUB2DIR}/fonts/
|
|
|
|
|
|
|
|
+install /usr/share/locale/ru/LC_MESSAGES/grub.mo ${GRUB2DIR}/locale/ru.mo
|
|
|
|
|
|
|
|
install ${configdir}/grub2-bios.cfg ${GRUB2DIR}/grub.cfg
|
|
|
|
|
|
|
|
replace @VERSION@ ${product.version} ${GRUB2DIR}/grub.cfg
|
|
|
|
|
|
|
|
-replace @PRODUCT@ '${product.name}' ${GRUB2DIR}/grub.cfg
|
|
|
|
|
|
|
|
+%if product.name in ("MSVSphere", "MSVSphere Server"):
|
|
|
|
|
|
|
|
+replace @PRODUCT@ 'МСВСфера' ${GRUB2DIR}/grub.cfg
|
|
|
|
|
|
|
|
+%else:
|
|
|
|
|
|
|
|
+replace @PRODUCT@ '${product.name}' ${GRUB2DIR}/grub.cfg
|
|
|
|
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
+replace @FLAVOR@ '${FLAVOR}' ${GRUB2DIR}/grub.cfg
|
|
|
|
|
|
|
|
replace @KERNELPATH@ /${KERNELDIR}/vmlinuz ${GRUB2DIR}/grub.cfg
|
|
|
|
|
|
|
|
replace @INITRDPATH@ /${KERNELDIR}/initrd.img ${GRUB2DIR}/grub.cfg
|
|
|
|
|
|
|
|
replace @ISOLABEL@ '${isolabel}' ${GRUB2DIR}/grub.cfg
|
|
|
|
|
|
|
|
@@ -60,7 +79,7 @@ replace @ROOT@ 'inst.stage2=hd:LABEL=${isolabel|udev}' ${GRUB2DIR}/grub.cfg
|
|
|
|
<% efiarch64 = 'X64' %>
|
|
|
|
<% efiarch64 = 'X64' %>
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if (efiarch32 or efiarch64):
|
|
|
|
%if (efiarch32 or efiarch64):
|
|
|
|