From 60919e586e7632c84f08c26466b254bf75aab5d0 Mon Sep 17 00:00:00 2001 From: gc-taifu Date: Fri, 13 Dec 2024 11:48:40 +0800 Subject: [PATCH] [bugfix] #aone61678159. Add alinux support Project: N/A signoff-by: gaochang --- alinux.conf | 24 ++++++++++++++++++++++++ anaconda.spec | 7 ++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 alinux.conf diff --git a/alinux.conf b/alinux.conf new file mode 100644 index 0000000..c91f121 --- /dev/null +++ b/alinux.conf @@ -0,0 +1,24 @@ +# Anaconda configuration file for Anolis. + +[Profile] +# Define the profile. +profile_id = alinux +base_profile = rhel + +[Profile Detection] +# Match os-release values. +os_id = alinux + +[Anaconda] +forbidden_modules = + org.fedoraproject.Anaconda.Modules.Subscription + +[Bootloader] +efi_dir = anolis + +[Payload] +enable_closest_mirror = True +default_source = CLOSEST_MIRROR + +[License] +eula = /usr/share/alinux-release/EULA diff --git a/anaconda.spec b/anaconda.spec index bc5d8a1..768ed3c 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -1,4 +1,4 @@ -%define anolis_release 5 +%define anolis_release 6 Summary: Graphical system installer Name: anaconda @@ -19,6 +19,7 @@ URL: http://fedoraproject.org/wiki/Anaconda Source0: https://github.com/rhinstaller/anaconda/releases/download/%{name}-%{version}-1/%{name}-%{version}.tar.bz2 Source1: anolis.conf Source2: authselect.ks +Source3: alinux.conf Patch1001: 1001-do-not-download-source-code-when-building.patch Patch1002: 1002-Set-the-default-timezone-to-Shanghai.patch @@ -319,6 +320,7 @@ runtime on NFS/HTTP/FTP servers or local disks. %{make_install} find %{buildroot} -type f -name "*.la" | xargs %{__rm} cp %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}/profile.d/ +cp %{SOURCE3} %{buildroot}/%{_sysconfdir}/%{name}/profile.d/ # Create an empty directory for addons @@ -445,6 +447,9 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_d %{_prefix}/libexec/anaconda/dd_* %changelog +* Fri Dec 13 2024 Chang Gao - 38.23-6 +- add alinux configuration + * Mon Mar 11 2024 Bo Ren - 38.23-5 - Rebuild with python3.11 -- Gitee