Can the logic for myconfig
be changed to be a 'full config' if there are more than 1000 lines AND it does not contain scripts/config
I want to be able to have more than 1000 lines, and it seems that the determining factor is if myconfig contains text string('scripts/config') then partial else full
# This is intended for the people that want to build this package with their own config
# Put the file "myconfig" at the package folder to use this feature
# If it's a full config, will be replaced
# If not, you should use scripts/config commands, one by line
if [ -f "${startdir}/myconfig" ]; then
if [ $(wc -l < "${startdir}/myconfig") -gt 1000 ]; then
# myconfig is a full config file. Replace it
msg2 "Using user CUSTOM config..."
cp -f "${startdir}"/myconfig .config
else
# myconfig is a partial file. Applying every line
msg2 "Applying configs..."
cat "${startdir}"/myconfig | while read -r _linec ; do
if echo "$_linec" | grep "scripts/config" ; then
set -- $_linec
"$@"
else
warning "Line format incorrect, ignoring..."
fi
done
fi
echo
fi
Pinned Comments
anlorsp commented on 2024-07-13 17:07 (UTC) (edited on 2024-07-15 04:53 (UTC) by anlorsp)
Adding
to myconfig does solve the "Failed to insert module 'nvidia': Key was rejected by service" problem.
Anyone who configured secure boot using sbctl and want to load dkms modules can try this solution.
figue commented on 2018-12-14 00:50 (UTC) (edited on 2023-02-27 20:00 (UTC) by figue)
This package have several variables to enable/disable features.
Personally I'm running now xanmod kernel compiled with this:
Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):
Code involved: