You are not logged in.
Hi,
I'm using GRUB and I need to add a boot parameter without editing /etc/default/grub directly. Is there any form of drop-in configuration directory for /etc/default/grub?
Debian has /etc/default/grub.d/ but that doesn't work on Arch so I don't know what else I could do.
I would prefer to be able to put a file somewhere that has something along the lines of:
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX boot_parameter=1"
without needing to edit the main config file. Similar to Debian.
Thanks in advance.
Offline
Offline
Thanks!
Would adding
. /etc/default/grub.d/*
at the end of /etc/default/grub work?
I could probably make this one edit and put the rest in /etc/default/grub.d/.
Offline
You could test it?
Alternately the patch debian uses to add the behavior is https://sources.debian.org/src/grub2/2. … b-d.patch/
Offline
I tested it and it works fine. Thanks.
Offline