diff --git a/kernel.spec b/kernel.spec index a9b3cfc..4fff6d3 100644 --- a/kernel.spec +++ b/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. # 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