mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-24 02:52:55 +00:00
Enable disk-based swap even in certified distros due to necessity to install system in non-certificatable ways
This commit is contained in:
parent
4c7232ab3e
commit
4b6a6b3dc4
1 changed files with 5 additions and 5 deletions
10
kernel.spec
10
kernel.spec
|
@ -1063,12 +1063,12 @@ echo 'CONFIG_SECURITY_ALTHA=y' >> %{build_dir}/.config.append
|
||||||
# Our patch, based on Chromium OS kernel, allows to use only zram if CONFIG_DISK_BASED_SWAP_DEFAULT_ON=y.
|
# Our patch, based on Chromium OS kernel, allows to use only zram if CONFIG_DISK_BASED_SWAP_DEFAULT_ON=y.
|
||||||
# sysctl vm.disk_based_swap = 1 to allow disk-based swap, = 0 to disable it.
|
# sysctl vm.disk_based_swap = 1 to allow disk-based swap, = 0 to disable it.
|
||||||
# Note that CONFIG_ZRAM_WRITEBACK is still on.
|
# Note that CONFIG_ZRAM_WRITEBACK is still on.
|
||||||
sed -i '/CONFIG_DISK_BASED_SWAP_DEFAULT_ON/d' .config
|
#sed -i '/CONFIG_DISK_BASED_SWAP_DEFAULT_ON/d' .config
|
||||||
%if %{with nickel}
|
#%if %{with nickel}
|
||||||
echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=n' >> %{build_dir}/.config.append
|
#echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=n' >> %{build_dir}/.config.append
|
||||||
%else
|
#%else
|
||||||
echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=y' >> %{build_dir}/.config.append
|
echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=y' >> %{build_dir}/.config.append
|
||||||
%endif
|
#%endif
|
||||||
|
|
||||||
cat %{build_dir}/.config.append >> .config
|
cat %{build_dir}/.config.append >> .config
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue