add support for nestos
This commit is contained in:
parent
b4528b738a
commit
d771ea3ad2
@ -1,7 +1,7 @@
|
||||
%define _empty_manifest_terminate_build 0
|
||||
Name: anaconda
|
||||
Version: 36.16.5
|
||||
Release: 24
|
||||
Release: 25
|
||||
Summary: Graphical system installer
|
||||
License: GPLv2+ and MIT
|
||||
URL: http://fedoraproject.org/wiki/Anaconda
|
||||
@ -10,6 +10,7 @@ Source1: openeuler.conf
|
||||
Source2: euleros.conf
|
||||
Source3: hce.conf
|
||||
Source4: disable-disk-encryption.patch
|
||||
Source5: nestos.conf
|
||||
|
||||
%ifarch sw_64
|
||||
Patch6001: anaconda-33.19.sw.patch
|
||||
@ -192,26 +193,31 @@ runtime on NFS/HTTP/FTP servers or local disks.
|
||||
cp %{SOURCE1} %{SOURCE1}_tmp
|
||||
cp %{SOURCE2} %{SOURCE2}_tmp
|
||||
cp %{SOURCE3} %{SOURCE3}_tmp
|
||||
cp %{SOURCE5} %{SOURCE5}_tmp
|
||||
|
||||
# install openEuler conf for anaconda
|
||||
%ifarch x86_64
|
||||
sed -i "/^additional_arguments =*/ s/$/ crashkernel=512M/" %{SOURCE1}
|
||||
sed -i "/^additional_arguments =*/ s/$/ panic=3 nmi_watchdog=1/" %{SOURCE2}
|
||||
sed -i "/^additional_arguments =*/ s/$/ panic=3 nmi_watchdog=1/" %{SOURCE3}
|
||||
sed -i "/^additional_arguments =*/ s/$/ crashkernel=512M/" %{SOURCE5}
|
||||
%endif
|
||||
|
||||
%ifarch aarch64
|
||||
sed -i "/^additional_arguments =*/ s/$/ crashkernel=1024M,high smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15/" %{SOURCE1}
|
||||
sed -i "/^additional_arguments =*/ s/$/ panic=1 vga=0x317 nohz=off smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15/" %{SOURCE2}
|
||||
sed -i "/^additional_arguments =*/ s/$/ panic=1 vga=0x317 nohz=off smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15/" %{SOURCE3}
|
||||
sed -i "/^additional_arguments =*/ s/$/ crashkernel=1024M,high smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15/" %{SOURCE5}
|
||||
%endif
|
||||
install -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}/profile.d/
|
||||
install -m 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}/profile.d/
|
||||
install -m 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/%{name}/profile.d/
|
||||
install -m 0644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/%{name}/profile.d/
|
||||
|
||||
mv %{SOURCE1}_tmp %{SOURCE1}
|
||||
mv %{SOURCE2}_tmp %{SOURCE2}
|
||||
mv %{SOURCE3}_tmp %{SOURCE3}
|
||||
mv %{SOURCE5}_tmp %{SOURCE5}
|
||||
|
||||
# Create an empty directory for addons
|
||||
install -d -m 0755 %{buildroot}%{_datadir}/anaconda/addons
|
||||
@ -303,6 +309,12 @@ update-desktop-database &> /dev/null || :
|
||||
%{_prefix}/libexec/anaconda/dd_*
|
||||
|
||||
%changelog
|
||||
* Sat Sep 23 2023 wangyueliang <wangyueliang@kylinos.cn> - 36.16.5-25
|
||||
- Type:feature
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: add support for nestos
|
||||
|
||||
* Thu Sep 07 2023 sunhai <sunhai10@huawei.com> - 36.16.5-24
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
37
nestos.conf
Normal file
37
nestos.conf
Normal file
@ -0,0 +1,37 @@
|
||||
# Anaconda configuration file for nestos.
|
||||
|
||||
[Profile]
|
||||
# Define the profile.
|
||||
profile_id = nestos
|
||||
|
||||
[Profile Detection]
|
||||
# Match os-release values.
|
||||
os_id = nestos
|
||||
|
||||
[Installation System]
|
||||
can_detect_enabled_smt = False
|
||||
|
||||
[Network]
|
||||
default_on_boot = FIRST_WIRED_WITH_LINK
|
||||
|
||||
[Bootloader]
|
||||
efi_dir = openEuler
|
||||
additional_arguments = cgroup_disable=files apparmor=0
|
||||
|
||||
[Payload]
|
||||
enable_closest_mirror = True
|
||||
|
||||
[Storage]
|
||||
default_partitioning =
|
||||
/ (min 1 GiB, max 70 GiB)
|
||||
/home (min 500 MiB, free 50 GiB)
|
||||
swap
|
||||
|
||||
[Storage Constraints]
|
||||
swap_is_recommended = False
|
||||
|
||||
[User Interface]
|
||||
blivet_gui_supported = False
|
||||
|
||||
[License]
|
||||
eula = /usr/share/NestOS-release/EULA
|
||||
Loading…
x
Reference in New Issue
Block a user