From 409f1016be5167d94563835408b13d5c2f59de67 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Fri, 12 Mar 2021 13:31:26 +0100 Subject: [PATCH] We have a graceful fallback handling now, so we don't need the CFS fallback anymore. However, we want to exit when _nofallback is enabled, so restore that. Thanks to Pedro for reporting :frog: --- linux-tkg-config/prepare | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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