Put Clearlinux patches behind a toggle in .cfg, allowing them to be disabled

This commit is contained in:
Tk-Glitch
2022-03-16 12:21:41 +01:00
parent a0ca753da5
commit f315cc3682
2 changed files with 7 additions and 2 deletions

View File

@@ -229,6 +229,9 @@ _tcp_cong_alg=""
# You can pass a default set of kernel command line options here - example: "intel_pstate=passive nowatchdog amdgpu.ppfeaturemask=0xfffd7fff mitigations=off"
_custom_commandline="intel_pstate=passive"
# Selection of Clearlinux patches
_clear_patches="true"
#### SPESHUL OPTION ####

View File

@@ -482,8 +482,10 @@ _tkg_srcprep() {
fi
# TkG
tkgpatch="$srcdir/0002-clear-patches.patch"
_msg="Applying clear linux patches" && _tkg_patcher
if [ "$_clear_patches" = "true" ]; then
tkgpatch="$srcdir/0002-clear-patches.patch"
_msg="Applying clear linux patches" && _tkg_patcher
fi
tkgpatch="$srcdir/0003-glitched-base.patch"
_msg="Applying glitched base patch" && _tkg_patcher