Closed rgildein closed 1 year ago
We should add:
1. Note that this only handles simple configurations that starts with GRUB_ 2. add GRUB_.* check for configuration keys
I do not think that this is necessary, since this lib will be used by charm developer and not end user. If charm developer want, he/she can open the config file and do anything, that's why I do not see any benefits to add such validation.
Also without such validation we can do
{"TEST" : "1", "GRUB_A": "$TEST", "GRUB_B": "$TEST"}
LGTM (one nit comment). Do you think you're ready to merge this?
I think it's ready. Is there anyone else who should do review?
grub-mkconfig
andupdate-grub
I tested this with simple ubuntu charm, where I tried to configure
GRUB_CMDLINE_LINUX_DEFAULT
. What I tested:/etc/default/grub.d/95-juju-charm.cfg