diff options
| author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2021-03-29 09:39:42 +0200 |
|---|---|---|
| committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2021-03-29 21:01:36 +0800 |
| commit | f7ae553e6c5d512e8730df2224d690a25fc5e7a5 (patch) | |
| tree | 7f532c7fba2932f22a25b64af3f19b8011c3b824 | |
| parent | ab13b08e43c3f61c73bff84a9e7f1c398067ed83 (diff) | |
| download | meta-secure-core-f7ae553e6c5d512e8730df2224d690a25fc5e7a5.tar.gz | |
grub: Drop useless insmod verify from cfg
- the 'verify' grub module has been renamed to 'pgp' in grub 2.04;
- the 'pgp' grub module is already built-in if GRUB_SIGN_VERIFY is set,
so there's no need to call insmod;
While at it, remove some unnecessary code duplication.
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
| -rw-r--r-- | meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc b/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc index 2e97de1..5cdaa1c 100644 --- a/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc +++ b/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc | |||
| @@ -81,17 +81,13 @@ python __anonymous () { | |||
| 81 | do_compile_append() { | 81 | do_compile_append() { |
| 82 | if [ "${GRUB_SIGN_VERIFY}" = "1" -a "${GRUB_SIGN_VERIFY_STRICT}" = "1" ] ; then | 82 | if [ "${GRUB_SIGN_VERIFY}" = "1" -a "${GRUB_SIGN_VERIFY_STRICT}" = "1" ] ; then |
| 83 | cat<<EOF>${WORKDIR}/cfg | 83 | cat<<EOF>${WORKDIR}/cfg |
| 84 | insmod verify | ||
| 85 | set strict_security=1 | 84 | set strict_security=1 |
| 86 | search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg root | ||
| 87 | set prefix=(\$root)${GRUB_PREFIX_DIR} | ||
| 88 | EOF | 85 | EOF |
| 89 | else | 86 | fi |
| 90 | cat<<EOF>${WORKDIR}/cfg | 87 | cat<<EOF>>${WORKDIR}/cfg |
| 91 | search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg root | 88 | search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg root |
| 92 | set prefix=(\$root)${GRUB_PREFIX_DIR} | 89 | set prefix=(\$root)${GRUB_PREFIX_DIR} |
| 93 | EOF | 90 | EOF |
| 94 | fi | ||
| 95 | } | 91 | } |
| 96 | 92 | ||
| 97 | do_compile_append_class-native() { | 93 | do_compile_append_class-native() { |
