Enable disk-based swap even in certified distros due to necessity to install system in non-certificatable ways

This commit is contained in:
Mikhail Novosyolov 2020-08-06 14:31:51 +03:00
parent 4c7232ab3e
commit 4b6a6b3dc4

View file

@ -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.
# sysctl vm.disk_based_swap = 1 to allow disk-based swap, = 0 to disable it.
# Note that CONFIG_ZRAM_WRITEBACK is still on.
sed -i '/CONFIG_DISK_BASED_SWAP_DEFAULT_ON/d' .config
%if %{with nickel}
echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=n' >> %{build_dir}/.config.append
%else
#sed -i '/CONFIG_DISK_BASED_SWAP_DEFAULT_ON/d' .config
#%if %{with nickel}
#echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=n' >> %{build_dir}/.config.append
#%else
echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=y' >> %{build_dir}/.config.append
%endif
#%endif
cat %{build_dir}/.config.append >> .config