-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a command to source/include another config file #283
Comments
:Aero
CMDLINE=$INCLUDE(kernel.toml) Also having something like the above would be useful. |
Also also, it would be nice to include variable names in the include statements. This would be useful, for example, to include different configs for different architectures |
wouldn't that just be the |
I logged in precisely with the intention of making the same request, and I see with pleasure that I am not alone in finding that the possibility of importing a separately generated file into My use case: |
Edit: I realised I actually don't need this feature in hindsight because something like Lanzaboote handles this differently and I think I prefer their approach more. So the feature I outlined below might be interesting but I don't know if it outweighs the additional complexity. I'd also want a feature similar to this. It would even be nicer if it's possible to add multiple files with one command using some pattern matching. My use-case is to add support for Limine on GNU Guix in a manner similar to systemd-boot's usage on NixOS. On NixOS, systemd-boot is currently used like this: $ cat /boot/loader/loader.conf
console-mode keep
default nixos-*
editor true
timeout 5
$ tree /boot/loader/
/boot/loader/
├── entries
│ ├── nixos-generation-248.conf
│ ├── nixos-generation-249.conf
│ ├── nixos-generation-250.conf
│ └── nixos-generation-251.conf
├── entries.srel
├── loader.conf
└── random-seed
2 directories, 7 files |
This feature is very useful when another tool generates additional Limine config files such as OS-name.conf or snapshots.conf. The tool should not modify the original limine.conf, which is controlled by user to manage and enable/disable including additional config files. For example, when a kernel version is updated, an initramfs tool overwrites OS-name.conf without disturbing other configurations of other multiple boots in limine.conf.
|
I think it would be nice to be able to include other config files in limine.cfg, like how #include works in C
Example:
limine.cfg:
colors.cfg:
The text was updated successfully, but these errors were encountered: