From 094968baa79dfaae76525a4dc56962e73ff78dce Mon Sep 17 00:00:00 2001 From: yangxianzhao Date: Mon, 20 Feb 2023 18:08:00 +0800 Subject: [PATCH] set default Language to zh_CN on text mode --- ...fault-Language-to-zh_CN-on-text-mode.patch | 21 +++++++++++++++++++ anaconda.spec | 6 +++++- dist | 1 - 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 0012-set-default-Language-to-zh_CN-on-text-mode.patch delete mode 100644 dist diff --git a/0012-set-default-Language-to-zh_CN-on-text-mode.patch b/0012-set-default-Language-to-zh_CN-on-text-mode.patch new file mode 100644 index 0000000..48ec2f4 --- /dev/null +++ b/0012-set-default-Language-to-zh_CN-on-text-mode.patch @@ -0,0 +1,21 @@ +From be4bc59609d33eff0bf0a7d904060dac7c2df715 Mon Sep 17 00:00:00 2001 +From: yangxianzhao +Date: Fri, 17 Feb 2023 15:06:49 +0800 +Subject: [PATCH] set default Language to zh_CN on text mode + +--- + data/post-scripts/99-copy-logs.ks | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/data/post-scripts/99-copy-logs.ks b/data/post-scripts/99-copy-logs.ks +index bffc12b..fa2bd92 100644 +--- a/data/post-scripts/99-copy-logs.ks ++++ b/data/post-scripts/99-copy-logs.ks +@@ -37,3 +37,4 @@ fi + restorecon -ir /var/log/anaconda/ + + %end ++echo "LANG=zh_CN.UTF-8" >> $ANA_INSTALL_PATH/etc/profile +-- +2.27.0 + diff --git a/anaconda.spec b/anaconda.spec index 6059227..8788af3 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.3 +%define anolis_release .0.4 Summary: Graphical system installer Name: anaconda Version: 33.16.7.12 @@ -25,6 +25,7 @@ Patch0008: 0008-install-fix-kernel-spoke-notify.patch Patch0009: 0001-add-BOOTLOONGARCH64.EFI-for-anaconda-to-support-new-firmware.patch Patch0010: 0009-Fix-smt-description.patch Patch0011: 0010-update-kernel-description.patch +Patch0012: 0012-set-default-Language-to-zh_CN-on-text-mode.patch # End of Anolis patches # Versions of required components (done so we make sure the buildrequires @@ -378,6 +379,9 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_d %{_prefix}/libexec/anaconda/dd_* %changelog +* Fri Feb 17 2023 yangxianzhao - 33.16.7.12-1.0.4 +- feat: set language to zh_CN on text mode + * Thu Jan 5 2023 wangkaiyuan - 33.16.7.12-1.0.3 - Hide CompatibleKernel in anaconda on Phytium Sever CPU diff --git a/dist b/dist deleted file mode 100644 index 6e21d0c..0000000 --- a/dist +++ /dev/null @@ -1 +0,0 @@ -el8 -- Gitee