mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-04-21 02:18:44 +00:00
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>
This commit is contained in:
committed by
Jia Zhang
parent
ab13b08e43
commit
f7ae553e6c
@@ -81,17 +81,13 @@ python __anonymous () {
|
||||
do_compile_append() {
|
||||
if [ "${GRUB_SIGN_VERIFY}" = "1" -a "${GRUB_SIGN_VERIFY_STRICT}" = "1" ] ; then
|
||||
cat<<EOF>${WORKDIR}/cfg
|
||||
insmod verify
|
||||
set strict_security=1
|
||||
search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg root
|
||||
set prefix=(\$root)${GRUB_PREFIX_DIR}
|
||||
EOF
|
||||
else
|
||||
cat<<EOF>${WORKDIR}/cfg
|
||||
search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg root
|
||||
set prefix=(\$root)${GRUB_PREFIX_DIR}
|
||||
EOF
|
||||
fi
|
||||
cat<<EOF>>${WORKDIR}/cfg
|
||||
search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg root
|
||||
set prefix=(\$root)${GRUB_PREFIX_DIR}
|
||||
EOF
|
||||
}
|
||||
|
||||
do_compile_append_class-native() {
|
||||
|
||||
Reference in New Issue
Block a user