On 02/03/2024, 03:21, "Oskari Pirhonen" <xxc3ncoredxx@gmail.com> wrote:
> Would it be better to have the kernel command line args in GRUB config override the ones in
> any drop-ins? At least for me it would be surprising behavior if my distro set something in
> /usr/lib/kernel.d/ and changing that value in my GRUB config didn't have an effect.
That then makes it impossible for an admin to override any parameter present in
GRUB_CMDLINE_LINUX as that takes priority over files in either /etc/kernel.d/ or /usr/lib/kernel.d/
In my hubris I imagine that distros would move all static or install-time config to /usr/lib/kernel.d/ and GRUB_CMDLINE_LINUX would be left just for backward compatibility.
If a distro carries this change then the docs telling users how to set their own parameters would need updating to mention /etc/kernel.d/ instead of GRUB_CMDLINE_LINUX.
I can switch the order if that's the preferred behaviour, but I feel it diminishes the usefulness of the feature.
Regards
Simon