grub: avoid mounting the read-only root filesystem

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
This commit is contained in:
Jackie Huang 2020-05-06 12:13:39 +08:00 committed by Babak Sarashki
parent 6471c897f3
commit 5287c512fb

View File

@ -6,6 +6,8 @@ do_install_append() {
for file in ${D}${bindir}/grub2-* ${D}${sbindir}/grub2-*; do
ln -sf $(basename ${file}) $(echo ${file}|sed 's/grub2/grub/')
done
sed -i -e 's/ ro / rw /' ${D}${sysconfdir}/grub.d/10_linux
}
FILES_${PN}-editenv = "${bindir}/grub2-editenv"