mirror of
https://github.com/clearlinux/clr-boot-manager.git
synced 2026-08-27 00:35:50 +00:00
9bdd68d4c5
This change introduces support for vendor kernel configuration fragments, which typically live within the /usr/share/kernel/cmdline.d directory. These are useful to vendors and OEMs to pre-enable some hardware quirks such as acpi_os, i8042 tweaks, etc. These files take a higher precedence than the /etc/ files, however to ensure we abide by a proper stateless policy we allow the concept of masking and disabling in the style of systemd. The files in the "vendor config" directory are considered masked when a file with the same base name lives within the "system config" (/etc/kernel/cmdline.d) tree. The vendor file will be skipped regardless of system config validity in this instance. To allow disabling entirely of the vendor config file, the local system administrator may follow the masking approach as described as above, but instead of creating a override, symlink this file to /dev/null. This will cause the file to be removed entirely from any kind of parsing. This link logic is only valid within the context of the system config directory. Signed-off-by: Ikey Doherty <ikey@solus-project.com>