Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

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

Open
YHNdnzj opened this issue Oct 16, 2022 · 2 comments
Open

Comments

@YHNdnzj
Copy link

YHNdnzj commented Oct 16, 2022

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
Copy link
Owner

andreyv commented Oct 16, 2022

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
Copy link
Author

YHNdnzj commented Oct 16, 2022

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants