reorganizing and adding context

This commit is contained in:
nazunalika 2021-10-19 01:39:56 -07:00
parent 7facf3d534
commit dd605c8eac
Signed by: label
GPG Key ID: 6735C0E1BD65D048
3 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,4 @@
# These defaults are from upstream and are not patched into systemd like in el8
# https://bugzilla.redhat.com/show_bug.cgi?id=1689346 # https://bugzilla.redhat.com/show_bug.cgi?id=1689346
kernel.kptr_restrict = 1 kernel.kptr_restrict = 1

Binary file not shown.

View File

@ -7,7 +7,7 @@
# Distribution Name and Version # Distribution Name and Version
%define distro_name Rocky Linux %define distro_name Rocky Linux
%define distro_code Green Obsidian %define distro_code Blue Onyx
%define major 9 %define major 9
%define minor 0 %define minor 0
%define rocky_rel 1 %define rocky_rel 1
@ -130,7 +130,8 @@ echo Good.
mkdir ./docs mkdir ./docs
cp %{SOURCE201} %{SOURCE202} %{SOURCE203} ./docs cp %{SOURCE201} %{SOURCE202} %{SOURCE203} ./docs
# system-release ################################################################################
# system-release data
install -d -m 0755 %{buildroot}%{_sysconfdir} install -d -m 0755 %{buildroot}%{_sysconfdir}
echo "%{distro_name} release %{version} (%{distro_code})" > %{buildroot}%{_sysconfdir}/rocky-release echo "%{distro_name} release %{version} (%{distro_code})" > %{buildroot}%{_sysconfdir}/rocky-release
echo "Derived from Red Hat Enterprise Linux %{version}" > %{buildroot}%{_sysconfdir}/rocky-release-upstream echo "Derived from Red Hat Enterprise Linux %{version}" > %{buildroot}%{_sysconfdir}/rocky-release-upstream
@ -189,6 +190,9 @@ install -d -m 0755 %{buildroot}%{_datadir}/rocky-release
ln -s rocky-release %{buildroot}%{_datadir}/redhat-release ln -s rocky-release %{buildroot}%{_datadir}/redhat-release
install -p -m 0644 %{SOURCE200} %{buildroot}%{_datadir}/rocky-release/ install -p -m 0644 %{SOURCE200} %{buildroot}%{_datadir}/rocky-release/
# end system-release data
################################################################################
################################################################################ ################################################################################
# systemd section # systemd section
install -d -m 0755 %{buildroot}%{_prefix}/lib/systemd/system-preset/ install -d -m 0755 %{buildroot}%{_prefix}/lib/systemd/system-preset/
@ -201,13 +205,13 @@ install -m 0644 %{SOURCE302} %{buildroot}/%{_prefix}/lib/systemd/system-preset/
install -m 0644 %{SOURCE303} %{buildroot}/%{_prefix}/lib/systemd/system-preset/ install -m 0644 %{SOURCE303} %{buildroot}/%{_prefix}/lib/systemd/system-preset/
install -m 0644 %{SOURCE303} %{buildroot}/%{_prefix}/lib/systemd/user-preset/ install -m 0644 %{SOURCE303} %{buildroot}/%{_prefix}/lib/systemd/user-preset/
# systemd section
################################################################################
# sysctl presets # sysctl presets
install -d -m 0755 %{buildroot}%{_prefix}/lib/sysctl.d/ install -d -m 0755 %{buildroot}%{_prefix}/lib/sysctl.d/
install -m 0644 %{SOURCE304} %{buildroot}/%{_prefix}/lib/sysctl.d/ install -m 0644 %{SOURCE304} %{buildroot}/%{_prefix}/lib/sysctl.d/
# systemd section
################################################################################
################################################################################ ################################################################################
# start secureboot section # start secureboot section
install -d -m 0755 %{buildroot}%{_sysconfdir}/pki/sb-certs/ install -d -m 0755 %{buildroot}%{_sysconfdir}/pki/sb-certs/