andreyv / sbupdate

Generate and sign kernel images for UEFI Secure Boot on Arch Linux
GNU General Public License v3.0
225 stars 20 forks source link

RFE: add `CMDLINE_ALWAYS` or alike for kernel options that are always added #57

Open YHNdnzj opened 1 year ago

YHNdnzj commented 1 year ago

For now, if I manually override cmdline for a kernel using CMDLINE["linux-X"], options in CMDLINE_DEFAULT are not used. However, when it comes to options like root=, defining them again for each kernel is annoying. Thus, it would be nice to add a CMDLINE_ALWAYS setting or alike that contains kernel options always applied to all kernels, cmdline overridden or not.

andreyv commented 1 year ago

The configuration file is a Bash script. So you can already implement it like this:

CMDLINE_ALWAYS="foo bar"
CMDLINE_DEFAULT="${CMDLINE_ALWAYS} more options"

CMDLINE["linux-X"]="${CMDLINE_ALWAYS} other options"
YHNdnzj commented 1 year ago

The configuration file is a Bash script. So you can already implement it like this:

CMDLINE_ALWAYS="foo bar"
CMDLINE_DEFAULT="${CMDLINE_ALWAYS} more options"

CMDLINE["linux-X"]="${CMDLINE_ALWAYS} other options"

It is still inconvenient as you need to modify each cmdline manually...