asqwerth wrote: Tue Dec 03, 2024 10:46 am @siamhie you said:
My suggested way will NOT give you ONLY 3 entries on the on-screen boot menu, since the grub.cfg entries will come after whatever is in custom.cfg. However, you will have your favourite custom entries right at the top.I would like to know more on this custom.cfg file you mention. Would I edit my grub.cfg file to my liking and save it as custom.cfg in the boot directory?
Then save the 41_custom file as 09_custom in the /etc/grub.d/ directory?
Seems you responded just as I was typing a new comment. I did look at the contents of 41_custom and had a question.
Code: Select all
#!/bin/sh
cat <<EOF
if [ -f \${config_directory}/custom.cfg ]; then
source \${config_directory}/custom.cfg
elif [ -z "\${config_directory}" -a -f \$prefix/custom.cfg ]; then
source \$prefix/custom.cfg;
fi
EOF
Does this also get added to my custom.cfg file at the end?