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

Feature request: Include functionality #19

Closed bbaserdem closed 4 years ago

bbaserdem commented 4 years ago

I am distributing configs through etckeeper across my computers. For my use case, it could be useful to have a line such as #include /etc/sbupdate.local.conf, so I could give generic options in /etc/sbupdate.conf, which can be shared accross devices; and device specific info on some file that will be distributed in some other way.

andreyv commented 4 years ago

The config file is a Bash script. You can do

[[ -f "/etc/sbupdate.local.conf" ]] && source "/etc/sbupdate.local.conf"

in the config.

bbaserdem commented 4 years ago

Oh did not realize that is was a bash script. Then functionality already exists.