Secure Boot GRUB template: be more dynamic + don't overwrite with empty variable
authorMichael Prokop <mika@grml.org>
Wed, 6 Sep 2017 07:20:08 +0000 (09:20 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 6 Sep 2017 15:44:08 +0000 (17:44 +0200)
commit4b8bb306125118065d3b0845aadffc0407b68312
tree738c3d70905f480d4b40a72c7017f2ad22ed09a6
parentc965d94764064a8098d99558b9d0085dda629d58
Secure Boot GRUB template: be more dynamic + don't overwrite with empty variable

By searching for grmlenv.cfg we can make it more dynamic
instead of having to hardcode (hd0) which might be wrong
in the grml2usb situation.

There's also no need to set root/prefix multiple times, especially
since we depend on 'root=(hd0)' for the default ISO boot anyway.

Don't overwrite prefix if the grml_orig_prefix variable is empty.

Secure Boot enabled ISOs generated with grml-live >=0.31.0 are supported
with grml2usb >=0.16.0.
templates/secureboot/grub.cfg