diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 6f5da5b..011ce53 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -202,11 +202,15 @@ _tkg_initscript() { echo "_cpusched=\"$_cpusched\"" > "${_path}"/cpuschedset fi else - if [ "$_nofallback" != "true" ] && ! [[ ${_CPUSCHEDVARARRAY[*]} =~ "$_cpusched" ]]; then - warning "Your cpusched selection ( $_cpusched ) is not available for the selected kernel version. Please select another:" - _cpuschedselector - elif [ "$_nofallback" = "true" ]; then - echo "_cpusched=\"cfs\"" > "${_path}"/cpuschedset + if ! [[ ${_CPUSCHEDVARARRAY[*]} =~ "$_cpusched" ]]; then + warning "Your cpusched selection ( $_cpusched ) is not available for the selected kernel version." + if [ "$_nofallback" = "true" ]; then + warning "Since _nofallback is enabled, let's exit..." + exit 1 + else + warning "Please select another:" + _cpuschedselector + fi fi fi