mirror of
https://github.com/clearlinux/clr-boot-manager.git
synced 2026-08-24 06:58:04 +00:00
6add44b10e
To make it easier to manipulate the cmdline that is emitted into the per-kernel boot entries, we add a new parser to clr-boot-manager. This parser will be responsible in future for loading a *per kernel* cmdline, as well as loading a global system cmdline. The first file to be read will always be /etc/kernel/cmdline, and after this the files in /etc/kernel/cmdline.d/*.conf will be read in, which is then merged into a single cmdline line. The file format permits new lines and comments, which are stripped from the emitted text. It also takes care to skip unnecessary whitespace, allowing the cmdline to be built in layers from various locations. Two immediate consequences arise: The ability for the user to append to the default kernel cmdline, and the ability for vendors to provide quirks and such by default, without modifying kernel packages or CBM itself. Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>