grub: add symlinks for compatible with meta-anaconda

yocto and meta-anaconda assume the grub pacakge provides
binaries named with grub-*, not grub2-*, so add symlinks
for these binaries so it's still meet the other yocto
layer's asummption.

fix #102

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
Jackie Huang 2020-02-26 23:00:44 +08:00
parent ee9e2ed303
commit e7a59405c9

View File

@ -1,5 +1,10 @@
TRANSFORM_NAME = "s,grub,grub2,"
EXTRA_OECONF += "--program-transform-name=${TRANSFORM_NAME} \
"
EXTRA_OECONF += "--program-transform-name=${TRANSFORM_NAME}"
do_install_append() {
for file in ${D}${bindir}/grub2-* ${D}${sbindir}/grub2-*; do
ln -sf $(basename ${file}) $(echo ${file}|sed 's/grub2/grub/')
done
}
FILES_${PN}-editenv = "${bindir}/grub2-editenv"